From 72f545155767903c019adbb2b93a34625de18640 Mon Sep 17 00:00:00 2001 From: almeidx Date: Thu, 30 Sep 2021 23:57:35 +0100 Subject: [PATCH] fix(Util): default animated to false when omitted on resolvePartialEmoji --- src/util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Util.js b/src/util/Util.js index 1c01f5df76c2..6d0944ece3d6 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -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) }; } /**