diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 11:09:36 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 11:09:36 -0400 |
commit | fb73d1b421638ea695eeafeee2215a1e923c4d4a (patch) | |
tree | 57c631f590478014f9ba1739a0d0c19ec05df09d /src/lib/extensions | |
parent | 48661511dd485957506e7900c8e86916aa3ea3af (diff) | |
download | tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.tar.gz tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.tar.bz2 tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.zip |
leaderboard command and some fixes
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 4d565e4..9a5a07f 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -673,7 +673,8 @@ export class BushClientUtil extends ClientUtil { message: BushMessage | BushSlashMessage, embeds: MessageEmbed[], text: string | null = null, - deleteOnExit?: boolean + deleteOnExit?: boolean, + startOn?: number ): Promise<void> { const paginateEmojis = this.#paginateEmojis; if (deleteOnExit === undefined) deleteOnExit = true; @@ -687,7 +688,7 @@ export class BushClientUtil extends ClientUtil { }); const style = Constants.MessageButtonStyles.PRIMARY; - let curPage = 0; + let curPage = startOn ? startOn - 1 : undefined ?? 0; if (typeof embeds !== 'object') throw new Error('embeds must be an object'); const msg = (await message.util.reply({ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing |