Skip to content

Commit

Permalink
fix(Emoji): name can be null (#5513)
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Apr 30, 2021
1 parent c9b5353 commit 5397021
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/structures/Emoji.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 5397021

Please sign in to comment.