@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
20 lines (19 loc) • 739 B
TypeScript
import { Button as ErisButton, SelectMenu } from 'eris';
import { AnyContext } from '../../contexts/AnyContext';
import { ComponentHandler } from '../interfaces/ComponentHandler';
export declare class BaseComponent {
protected readonly ctx: AnyContext;
definition: Partial<ErisButton | SelectMenu>;
handler?: ComponentHandler;
constructor(ctx: AnyContext, customId: string, handler?: ComponentHandler);
/**
* Set component as disabled.
* @param set Optional Helper, Explicity set disabled state
*/
disable(set?: boolean): this;
/**
* Set component as enabled, or rather, not disabled.
* @param set Optional Helper, Explicity set enabled state
*/
enable(set?: boolean): this;
}