From a363b90fa54f9f7334e4bad19f98a2df724d593c Mon Sep 17 00:00:00 2001 From: Louis <61402486+flamelessdev@users.noreply.github.com> Date: Fri, 28 Aug 2020 21:49:53 +0930 Subject: [PATCH] docs(BaseGuildEmoji): account for optional properties (#4723) --- src/structures/BaseGuildEmoji.js | 6 +++--- typings/index.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/structures/BaseGuildEmoji.js b/src/structures/BaseGuildEmoji.js index d3665271c..3dc9819f3 100644 --- a/src/structures/BaseGuildEmoji.js +++ b/src/structures/BaseGuildEmoji.js @@ -32,21 +32,21 @@ class BaseGuildEmoji extends Emoji { /** * Whether or not this emoji requires colons surrounding it - * @type {boolean} + * @type {?boolean} * @name GuildEmoji#requiresColons */ if (typeof data.require_colons !== 'undefined') this.requiresColons = data.require_colons; /** * Whether this emoji is managed by an external service - * @type {boolean} + * @type {?boolean} * @name GuildEmoji#managed */ if (typeof data.managed !== 'undefined') this.managed = data.managed; /** * Whether this emoji is available - * @type {boolean} + * @type {?boolean} * @name GuildEmoji#available */ if (typeof data.available !== 'undefined') this.available = data.available; diff --git a/typings/index.d.ts b/typings/index.d.ts index 971eee38e..d3b84826e 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -114,13 +114,13 @@ declare module 'discord.js' { constructor(client: Client, data: object, guild: Guild); private _roles: string[]; - public available: boolean; + public available?: boolean; public readonly createdAt: Date; public readonly createdTimestamp: number; public guild: Guild | GuildPreview; public id: Snowflake; - public managed: boolean; - public requiresColons: boolean; + public managed?: boolean; + public requiresColons?: boolean; } class BroadcastDispatcher extends VolumeMixin(StreamDispatcher) {