From 54e320c73144a4628f9514e738636945a3edbdc2 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Tue, 21 Nov 2017 09:08:58 -0500 Subject: [PATCH] Swap `_determineEmojis()` signatures From the code, it seems like `RichDisplay#_determineEmojis()` has the four-argument signature, whereas `RichMenu#_determineEmojis()` has the two-argument signature. The typings have them mixed up, so this patch swaps the signatures to reflect the code. --- typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index dd5529c5be..524b789762 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -213,7 +213,7 @@ declare module 'klasa' { public setInfoPage(embed: MessageEmbed): RichDisplay; public run(msg: ExtendedMessage, options?: RichDisplayRunOptions): Promise; private _footer(): void; - private _determineEmojis(emojis: emoji[], stop: boolean): emoji[]; + private _determineEmojis(emojis: emoji[], stop: boolean, jump: boolean, firstLast: boolean): emoji[]; private _handlePageGeneration(cb: Function|RichEmbed): RichEmbed; } @@ -226,7 +226,7 @@ declare module 'klasa' { public addOption(name: string, body: string, inline?: boolean): RichMenu; public run(msg: ExtendedMessage, options?: RichMenuRunOptions): ReactionHandler; - private _determineEmojis(emojis: emoji[], stop: boolean, jump: boolean, firstLast: boolean): emoji[]; + private _determineEmojis(emojis: emoji[], stop: boolean): emoji[]; private _paginate(): void; }