mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(GuildemojiStore): allow resolving of external ReactionEmoji
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user