typings/docs(GuildEmoji): id isn't nullable (#3694)

* Fix: GuildEmoji#id isn't nullable

* Move ID to be alphabetical

* Add JSDoc to say it's not nullable

* fix linting
This commit is contained in:
Gryffon Bellish
2020-01-17 14:11:14 -05:00
committed by SpaceEEC
parent 6a0fe467e5
commit 69c79a4136
2 changed files with 7 additions and 0 deletions

View File

@@ -24,6 +24,12 @@ class GuildEmoji extends Emoji {
*/
this.guild = guild;
/**
* The ID of this emoji
* @type {Snowflake}
* @name GuildEmoji#id
*/
this._roles = [];
this._patch(data);
}

1
typings/index.d.ts vendored
View File

@@ -841,6 +841,7 @@ declare module 'discord.js' {
public available: boolean;
public readonly deletable: boolean;
public guild: Guild;
public id: Snowflake;
public managed: boolean;
public requiresColons: boolean;
public roles: GuildEmojiRoleStore;