diff --git a/src/structures/Emoji.js b/src/structures/Emoji.js index 86119d309c24..d280959ebaef 100644 --- a/src/structures/Emoji.js +++ b/src/structures/Emoji.js @@ -18,9 +18,9 @@ class Emoji extends Base { /** * The name of this emoji - * @type {string} + * @type {?string} */ - this.name = emoji.name; + this.name = emoji.name ?? null; /** * The ID of this emoji diff --git a/typings/index.d.ts b/typings/index.d.ts index 9cf19cce4c66..28366fde3af5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -558,7 +558,7 @@ declare module 'discord.js' { public readonly createdTimestamp: number | null; public deleted: boolean; public id: Snowflake | null; - public name: string; + public name: string | null; public readonly identifier: string; public readonly url: string | null; public toJSON(): object;