mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
5ba809804e
The scripting capabilities is locked behind a cmake flag, and is not enabled by default. Co-authored-by: nerix <nerixdev@outlook.de> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
23 lines
474 B
TypeScript
23 lines
474 B
TypeScript
/** @noSelfInFile */
|
|
|
|
declare module c2 {
|
|
enum LogLevel {
|
|
Debug,
|
|
Info,
|
|
Warning,
|
|
Critical,
|
|
}
|
|
class CommandContext {
|
|
words: String[];
|
|
channel_name: String;
|
|
}
|
|
|
|
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;
|
|
}
|