@ayanaware/bentocord
Version:
Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.
19 lines (18 loc) • 647 B
TypeScript
import { Component, ComponentAPI } from '@ayanaware/bento';
import { Client, ClientOptions, OAuthApplicationInfo } from 'eris';
export declare class Discord implements Component {
name: string;
api: ComponentAPI;
client: Client;
private clientOptions;
application: OAuthApplicationInfo;
private readonly interface;
onUnload(): Promise<void>;
onVerify(): Promise<void>;
connect(tokenOverride?: string, optionsOverride?: ClientOptions): Promise<void>;
disconnect(): Promise<void>;
private handleShardError;
private handleShardReady;
private handleShardResume;
private handleShardDisconnect;
}