From 0bf0574bcd843f76daf297878e9734fb9d663767 Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 20 Aug 2020 18:32:54 +0100 Subject: [PATCH 1/3] Correct doc for EmojiOptions --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b000757c72..ad8d1954cc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -301,7 +301,8 @@ declare namespace Eris { icon?: string; name: string; } - interface EmojiOptions extends EmojiBase { + interface EmojiOptions extends Exclude { + image: string; roles?: string[]; } interface PartialEmoji { From 841ee9106880334f18a82c3822d22d4d8248b1f6 Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 20 Aug 2020 19:11:04 +0100 Subject: [PATCH 2/3] Correct some stuff --- index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index ad8d1954cc..1b1156a2c8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -554,6 +554,7 @@ declare namespace Eris { expireGracePeriod: string; } interface PruneMemberOptions extends GetPruneOptions { + computePruneCount?: boolean; reason?: string; } interface VoiceRegion { @@ -1724,8 +1725,6 @@ declare namespace Eris { approximatePresenceCount: number; description: string | null; discoverySplash: string | null; - dynamicIconURL(format?: ImageFormat, size?: number): string; - dynamicSplashURL(format?: ImageFormat, size?: number): string; emojis: Emoji[]; features: string[]; icon: string | null; @@ -1735,6 +1734,8 @@ declare namespace Eris { splash: string | null; splashURL: string | null; constructor(data: BaseData, client: Client); + dynamicIconURL(format?: ImageFormat, size?: number): string; + dynamicSplashURL(format?: ImageFormat, size?: number): string; } export class Invite extends Base { @@ -1808,7 +1809,7 @@ declare namespace Eris { member: Member | null; mentionEveryone: boolean; mentions: User[]; - messageReference: MessageReference; + messageReference: MessageReference | null; pinned: boolean; prefix?: string; reactions: { [s: string]: any; count: number; me: boolean }; From 711000e1c46f6bef370111cfa083934c24de244d Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 20 Aug 2020 19:12:18 +0100 Subject: [PATCH 3/3] Optional Message#application --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 1b1156a2c8..948f501630 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1791,7 +1791,7 @@ declare namespace Eris { export class Message extends Base { activity?: MessageActivity; - application: MessageApplication; + application?: MessageApplication; attachments: Attachment[]; author: User; channel: T;