mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Reformat chatterino.d.ts
This commit is contained in:
parent
7d2fd1eed5
commit
6e8af794fc
1 changed files with 17 additions and 14 deletions
31
docs/chatterino.d.ts
vendored
31
docs/chatterino.d.ts
vendored
|
@ -1,19 +1,22 @@
|
||||||
/** @noSelfInFile */
|
/** @noSelfInFile */
|
||||||
|
|
||||||
declare module c2 {
|
declare module c2 {
|
||||||
enum LogLevel {
|
enum LogLevel {
|
||||||
Debug,
|
Debug,
|
||||||
Info,
|
Info,
|
||||||
Warning,
|
Warning,
|
||||||
Critical
|
Critical,
|
||||||
}
|
}
|
||||||
class CommandContext {
|
class CommandContext {
|
||||||
words: String[];
|
words: String[];
|
||||||
channel_name: String;
|
channel_name: String;
|
||||||
}
|
}
|
||||||
|
|
||||||
function log(level: LogLevel, ...data: any[]): void;
|
function log(level: LogLevel, ...data: any[]): void;
|
||||||
function register_command(name: String, handler: (ctx: CommandContext)=>void): boolean;
|
function register_command(
|
||||||
function send_msg(channel: String, text: String): boolean;
|
name: String,
|
||||||
function system_msg(channel: String, text: String): boolean;
|
handler: (ctx: CommandContext) => void
|
||||||
|
): boolean;
|
||||||
|
function send_msg(channel: String, text: String): boolean;
|
||||||
|
function system_msg(channel: String, text: String): boolean;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue