fix(Emoji): id set as undefined edge case (#9953)

This commit is contained in:
Almeida 2023-11-12 21:34:24 +00:00 committed by GitHub
parent f93abf7e35
commit cc07a28f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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