djs-systems
Version:
The simplest way to build complex Discord bots.
13 lines (12 loc) • 923 B
TypeScript
import { ButtonInteraction } from 'discord.js';
import { manageBtnRoleOptions } from '../handler/manageBtnRole';
import { DeleteResolve, manageTicketOptions } from '../handler/manageTicket';
import { RerollResolve, manageGiveawayOptions } from '../handler/manageGiveaway';
/**
* manageBtn() handles btnRole(), betterBtnRole(), giveaway() and ticketSetup() combined. As users don't use everything from the package. Using this combined handler was a mess. So we separated it into three handlers.
*
* @deprecated Use {@link manageBtnRole()} to handle btnRole() and betterBtnRole()
* @deprecated Use {@link manageGiveaway()} to handle giveaway()
* @deprecated Use {@link manageTicket()} to handle ticketSetup()
*/
export declare function manageBtn(interaction: ButtonInteraction, options?: manageBtnRoleOptions | manageGiveawayOptions | manageTicketOptions): Promise<boolean | RerollResolve | DeleteResolve>;