diff options
Diffstat (limited to 'src/lib/common/ButtonPaginator.ts')
-rw-r--r-- | src/lib/common/ButtonPaginator.ts | 11 |
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, |