mirror-chatterino2/docs/chatterino.d.ts

23 lines
474 B
TypeScript
Raw Normal View History

/** @noSelfInFile */
declare module c2 {
2023-02-28 23:26:30 +01:00
enum LogLevel {
Debug,
Info,
Warning,
Critical,
}
class CommandContext {
words: String[];
channel_name: String;
}
2023-02-28 23:26:30 +01:00
function log(level: LogLevel, ...data: any[]): void;
function register_command(
name: String,
handler: (ctx: CommandContext) => void
): boolean;
function send_msg(channel: String, text: String): boolean;
function system_msg(channel: String, text: String): boolean;
}