UNPKG

detritus-client

Version:

A Typescript NodeJS library to interact with Discord's API, both Rest and Gateway.

11 lines (10 loc) 428 B
import { BaseCollection } from '../collections'; import { Interaction } from '../structures'; import { Components } from '../utils'; export declare class ComponentHandler { listeners: BaseCollection<string, Components>; delete(listenerId: string): boolean; execute(interaction: Interaction): Promise<void>; insert(listener: Components): void; replaceId(oldListenerId: string, newListenerId: string): void; }