UNPKG

@notoiro/djs-button-pages

Version:

A simple yet powerful module for implementing customizable embed pages with buttons in Discord chat. Works only with Discord.js.

25 lines (24 loc) 492 B
import { APIEmbed } from "discord.js"; import ButtonWrapper from "./ButtonWrapper"; import FilterOptions from "./FilterOptions"; /** * Interface for pagination's data. */ export default interface PaginationData { /** * Options for filtering out interactions. */ filterOptions: FilterOptions; /** * Pages. */ embeds: Array<APIEmbed>; /** * Buttons. */ buttons: Array<ButtonWrapper>; /** * Life-time. */ time: number; }