Archived
on events type declaration
This commit is contained in:
1 parent
6cd71bbf31
commit
9ac0fa7fdd
2 files changed
+10
-3
No files matched your search
@@ -12,6 +12,15 @@ import { SystemMessageManager } from "./SystemMessage.js";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
//TYPE DEFINITIONS
|
||||
export declare interface Bot {
|
||||
on(event: "ready", listener: Function): this;
|
||||
on(event: "message", listener: (m: Message) => void): this;
|
||||
on(
|
||||
event: "command",
|
||||
listener: (m: Message, cmdMsg: CommandMessageStructure) => void
|
||||
): this;
|
||||
on(event: "error", listener: (e: any) => void): this;
|
||||
}
|
||||
interface ConfigurationOptions {
|
||||
token?: string;
|
||||
helpCommand: boolean;
|
||||
|
||||
Reference in new issue
Block a user