mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fix resolveEmojiIdentifier (#1373)
This commit is contained in:
parent
8b67660271
commit
81d7dbdc76
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ class ClientDataResolver {
|
|||
resolveEmojiIdentifier(emoji) {
|
||||
if (emoji instanceof Emoji || emoji instanceof ReactionEmoji) return emoji.identifier;
|
||||
if (typeof emoji === 'string') {
|
||||
if (!isNaN(parseInt(emoji))) return this.client.emojis.get(emoji).identifier;
|
||||
if (this.client.emojis.has(emoji)) return this.client.emojis.get(emoji).identifier;
|
||||
else if (!emoji.includes('%')) return encodeURIComponent(emoji);
|
||||
else return emoji;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue