UNPKG

@sheweny/paginator

Version:

This module is a prototype of discord embeds paginator using discord.js V13 and array-paginator module.

17 lines (16 loc) 755 B
import { Paginator } from "array-paginator"; import { ActionRowBuilder } from "discord.js"; import type { Message, ButtonInteraction, TextChannel } from "discord.js"; import type { IOptions, Page } from "./ts/interfaces"; export declare class EmbedPaginator { firstAndLast: boolean; channel: TextChannel; pager: Paginator<any>; summoner: string; message: Message | null; constructor(channel: TextChannel, pages: Page[], options: IOptions); init(): Promise<void>; getComponents(): ActionRowBuilder<import("@discordjs/builders").MessageActionRowComponentBuilder | import("@discordjs/builders").TextInputBuilder>; listenReactions(): void; changePage(page: any, interaction: ButtonInteraction): void; }