aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/ButtonPaginator.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-05 15:20:08 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-05 15:20:08 -0500
commit1947c715f5ff846316b2d921b78f1a71a2892d1b (patch)
treef6bdc2d28537fd63f7e8c26db1cb4928cb9c9f13 /src/lib/common/ButtonPaginator.ts
parent3c56bbcf795725b65192409b3211d92c097f8c82 (diff)
downloadtanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.gz
tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.bz2
tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.zip
chore: upgrade deps
Diffstat (limited to 'src/lib/common/ButtonPaginator.ts')
-rw-r--r--src/lib/common/ButtonPaginator.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/common/ButtonPaginator.ts b/src/lib/common/ButtonPaginator.ts
index 15c07fa..e3d4207 100644
--- a/src/lib/common/ButtonPaginator.ts
+++ b/src/lib/common/ButtonPaginator.ts
@@ -1,7 +1,14 @@
import { DeleteButton, type BushMessage, type BushSlashMessage } from '#lib';
import { CommandUtil } from 'discord-akairo';
import { APIEmbed } from 'discord-api-types/v9';
-import { ActionRow, ActionRowComponent, ButtonComponent, ButtonStyle, Embed, type MessageComponentInteraction } from 'discord.js';
+import {
+ ActionRow,
+ ButtonComponent,
+ ButtonStyle,
+ Embed,
+ type MessageActionRowComponent,
+ type MessageComponentInteraction
+} from 'discord.js';
/**
* Sends multiple embeds with controls to switch between them
@@ -170,7 +177,7 @@ export class ButtonPaginator {
* @param disableAll Whether to disable all buttons
* @returns The generated {@link ActionRow}
*/
- protected getPaginationRow(disableAll = false): ActionRow<ActionRowComponent> {
+ protected getPaginationRow(disableAll = false): ActionRow<MessageActionRowComponent> {
return new ActionRow().addComponents(
new ButtonComponent({
style: ButtonStyle.Primary,