Skip to content

Commit

Permalink
fix(Util): default animated to false when omitted on resolvePartial…
Browse files Browse the repository at this point in the history
…Emoji (#6725)
  • Loading branch information
almeidx committed Oct 2, 2021
1 parent fe95005 commit 8d80fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Util.js
Expand Up @@ -309,7 +309,7 @@ class Util extends null {
if (typeof emoji === 'string') return /^\d{17,19}$/.test(emoji) ? { id: emoji } : Util.parseEmoji(emoji);
const { id, name, animated } = emoji;
if (!id && !name) return null;
return { id, name, animated };
return { id, name, animated: Boolean(animated) };
}

/**
Expand Down

0 comments on commit 8d80fec

Please sign in to comment.