Skip to content

Commit

Permalink
Update Emoji.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Nov 21, 2024
1 parent c1be4ce commit 5f69042
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/structures/Emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 5f69042

Please sign in to comment.