mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +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
|
* The name of this emoji
|
||||||
* @type {string}
|
* @type {?string}
|
||||||
*/
|
*/
|
||||||
this.name = emoji.name;
|
this.name = emoji.name ?? null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of this emoji
|
* 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 readonly createdTimestamp: number | null;
|
||||||
public deleted: boolean;
|
public deleted: boolean;
|
||||||
public id: Snowflake | null;
|
public id: Snowflake | null;
|
||||||
public name: string;
|
public name: string | null;
|
||||||
public readonly identifier: string;
|
public readonly identifier: string;
|
||||||
public readonly url: string | null;
|
public readonly url: string | null;
|
||||||
public toJSON(): object;
|
public toJSON(): object;
|
||||||
|
|||||||
Reference in New Issue
Block a user