fix(Emoji): id set as undefined edge case

backport #9953 djs
This commit is contained in:
Elysia
2024-09-17 11:44:26 +07:00
parent 35310968cc
commit f6bc9efabb

View File

@@ -43,7 +43,7 @@ class Emoji extends Base {
* The emoji's id * The emoji's id
* @type {?Snowflake} * @type {?Snowflake}
*/ */
this.id = emoji.id; this.id = emoji.id ?? null;
} }
/** /**