UNPKG

@ayanaware/bentocord

Version:

Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.

20 lines (19 loc) 883 B
import { EntityAPI } from '@ayanaware/bento'; import { CommandInteraction, Message } from 'eris'; import { InteractionContext } from '../contexts/InteractionContext'; import { MessageContext } from '../contexts/MessageContext'; import type { Command } from './interfaces/Command'; export declare type AnyCommandContext = MessageCommandContext | InteractionCommandContext; export declare class MessageCommandContext extends MessageContext { prefix: string; alias: string; readonly command: Command; constructor(api: EntityAPI, message: Message, command: Command); deleteExecutionMessage(): Promise<void>; } export declare class InteractionCommandContext extends InteractionContext { alias: string; readonly command: Command; constructor(api: EntityAPI, interaction: CommandInteraction, command: Command); deleteExecutionMessage(): Promise<void>; }