From 69c79a4136619e4dcacfffb935aa9bd60aa2081c Mon Sep 17 00:00:00 2001 From: Gryffon Bellish Date: Fri, 17 Jan 2020 14:11:14 -0500 Subject: [PATCH] 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 --- src/structures/GuildEmoji.js | 6 ++++++ typings/index.d.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/structures/GuildEmoji.js b/src/structures/GuildEmoji.js index 79fff52f7..a7620911d 100644 --- a/src/structures/GuildEmoji.js +++ b/src/structures/GuildEmoji.js @@ -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); } diff --git a/typings/index.d.ts b/typings/index.d.ts index 3e6aec40f..d567e6db6 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;