Skip to content

Commit cc07a28

Browse files
authored
fix(Emoji): id set as undefined edge case (#9953)
1 parent f93abf7 commit cc07a28

File tree

1 file changed

+1
-1
lines changed
  • packages/discord.js/src/structures

1 file changed

+1
-1
lines changed

packages/discord.js/src/structures/Emoji.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Emoji extends Base {
2929
* The emoji's id
3030
* @type {?Snowflake}
3131
*/
32-
this.id = emoji.id;
32+
this.id = emoji.id ?? null;
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)