@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.
9 lines (8 loc) • 392 B
TypeScript
import { Message, RepliableInteraction } from "discord.js";
import PaginationSent from "../Structures/PaginationSent";
import Promised from "./Promised";
/**
* Type for action that is called before or after the pagination is stopped.
*/
type StopAction = (reason: string, pagination: PaginationSent, message: RepliableInteraction | Message) => Promised<unknown>;
export default StopAction;