Skip to content

Commit

Permalink
fix(GuildemojiStore): allow resolving of external ReactionEmoji
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed Mar 10, 2018
1 parent 630009f commit 0f7ce3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/GuildEmojiStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class GuildEmojiStore extends DataStore {
resolveIdentifier(emoji) {
const emojiResolveable = this.resolve(emoji);
if (emojiResolveable) return emojiResolveable.identifier;
if (emoji instanceof ReactionEmoji) return emoji.identifier;
if (typeof emoji === 'string') {
if (!emoji.includes('%')) return encodeURIComponent(emoji);
else return emoji;
Expand Down

0 comments on commit 0f7ce3f

Please sign in to comment.