@zerospacegg/vynthra
Version:
Discord bot for ZeroSpace.gg data
46 lines • 1.33 kB
TypeScript
import { EventEmitter } from "events";
import type { BotClient, BotConfig } from "./types.js";
export interface CommandUsageEvent {
commandName: string;
subcommand?: string;
userTag: string;
userId: string;
guildId?: string;
guildName?: string;
channelType: string;
success: boolean;
errorMessage?: string;
responseTime: number;
isEphemeral: boolean;
timestamp: Date;
}
export declare class VynthraBot {
private client;
private config;
private eventEmitter;
constructor(config: BotConfig);
private setupEventHandlers;
private loadCommands;
start(): Promise<void>;
shutdown(): Promise<void>;
/**
* Format command details for logging
*/
private formatCommandDetails;
getClient(): BotClient;
/**
* Get the event emitter for listening to bot events
*/
getEventEmitter(): EventEmitter;
/**
* Add a listener for command usage events
*/
onCommandUsage(listener: (event: CommandUsageEvent) => void): void;
/**
* Remove a command usage listener
*/
offCommandUsage(listener: (event: CommandUsageEvent) => void): void;
deployCommandsToGuild(guildId: string): Promise<void>;
}
export declare function createBot(config: BotConfig): VynthraBot;
//# sourceMappingURL=client.d.ts.map