Skip to content

Commit

Permalink
fix(Emoji): id set as undefined edge case (#9953)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Nov 12, 2023
1 parent f93abf7 commit cc07a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Emoji extends Base {
* The emoji's id
* @type {?Snowflake}
*/
this.id = emoji.id;
this.id = emoji.id ?? null;
}

/**
Expand Down

0 comments on commit cc07a28

Please sign in to comment.