UNPKG

@ayanaware/bentocord

Version:

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

17 lines (16 loc) 798 B
import { EntityAPI } from '@ayanaware/bento'; import { ComponentInteraction, Message, FileContent } from 'eris'; import { InteractionContext } from '../../contexts/InteractionContext'; import { AgnosticMessageContentEdit } from '../../interfaces/AgnosticMessageContent'; import { ParsedCustomId } from '../util/ParseCustomId'; export declare class ComponentContext extends InteractionContext { interaction: ComponentInteraction; message: Message; get messageId(): string; constructor(api: EntityAPI, interaction: ComponentInteraction); get data(): ComponentInteraction['data']; get customId(): string; parseCustomId(): ParsedCustomId; deferUpdate(): Promise<void>; updateMessage(content: AgnosticMessageContentEdit, files?: Array<FileContent>): Promise<void>; }