mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
fix(Util): default animated to false when omitted on resolvePartialEmoji (#6725)
This commit is contained in:
@@ -309,7 +309,7 @@ class Util extends null {
|
|||||||
if (typeof emoji === 'string') return /^\d{17,19}$/.test(emoji) ? { id: emoji } : Util.parseEmoji(emoji);
|
if (typeof emoji === 'string') return /^\d{17,19}$/.test(emoji) ? { id: emoji } : Util.parseEmoji(emoji);
|
||||||
const { id, name, animated } = emoji;
|
const { id, name, animated } = emoji;
|
||||||
if (!id && !name) return null;
|
if (!id && !name) return null;
|
||||||
return { id, name, animated };
|
return { id, name, animated: Boolean(animated) };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user