mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(GuildemojiStore): allow resolving of external ReactionEmoji
This commit is contained in:
parent
630009f3cf
commit
0f7ce3f720
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue