UNPKG

discordjs-button-helper

Version:
3 lines (2 loc) 295 B
import { ButtonInteraction, MessageComponentInteraction, TextChannel } from 'discord.js'; export declare function onButtonClick(customId: string, channel: TextChannel, maxClicks: number, click: (i: ButtonInteraction) => void, customFilter?: (i: MessageComponentInteraction) => boolean): void;