djs-systems
Version:
The simplest way to build complex Discord bots.
24 lines (23 loc) • 823 B
TypeScript
import { ButtonInteraction } from 'discord.js';
/**
* **Documentation Url** of the type: *https://simplyd.js.org/docs/handler/manageBtnRole#btnrolereplies*
*/
export interface BtnRoleReplies {
add: string;
remove: string;
}
/**
* **Documentation Url** of the options: https://simplyd.js.org/docs/handler/manageBtnRole#managebtnroleoptions
*/
export declare type manageBtnRoleOptions = {
reply?: BtnRoleReplies;
strict?: boolean;
};
/**
* A Button Role Handler for **simplydjs button role system.**
* @param button
* @param options
* @link `Documentation:` https://simplyd.js.org/docs/hhandler/manageBtnRole
* @example simplydjs.manageBtnRole(interaction)
*/
export declare function manageBtnRole(button: ButtonInteraction, options?: manageBtnRoleOptions): Promise<boolean>;