mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
fix(Emoji): name can be null (#5513)
This commit is contained in:
@@ -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
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -598,7 +598,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;
|
||||
|
||||
Reference in New Issue
Block a user