From 5f6904219570909122a16ca6f3839f77d3d76186 Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Thu, 21 Nov 2024 19:41:54 +0000 Subject: [PATCH] Update Emoji.js --- src/structures/Emoji.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/structures/Emoji.js b/src/structures/Emoji.js index b131d59f..be176c04 100644 --- a/src/structures/Emoji.js +++ b/src/structures/Emoji.js @@ -131,7 +131,16 @@ class Emoji { * @public */ get animated() { - return (this.#_attributes & (0b1 << 2)) == 0b1 << 2; + return Emoji.isAnimated(this.#_attributes); + } + + /** + * Checks if the emoji is animated. + * @param {Number} attributes The attributes of the emoji. + * @returns {Boolean} + */ + static isAnimated(attributes) { + return (attributes & (0b1 << 2)) == 0b1 << 2; } /**