@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
17 lines (16 loc) • 725 B
TypeScript
import { Button as ErisButton, ButtonStyles as ButtonStylesType, PartialEmoji } from 'eris';
import { AnyContext } from '../../contexts/AnyContext';
import { ButtonHandler } from '../interfaces/ComponentHandler';
import { BaseComponent } from './BaseComponent';
export declare class Button extends BaseComponent {
definition: ErisButton;
constructor(ctx: AnyContext, customId: string, handler?: ButtonHandler);
label(label: string): this;
labelTranslated(key: string, repl?: Record<string, unknown>, backup?: string): Promise<this>;
emoji(emoji: Partial<PartialEmoji>): this;
style(style: ButtonStylesType): this;
primary(): this;
secondary(): this;
success(): this;
danger(): this;
}