Archived
simplified export
This commit is contained in:
1 parent
2ceb32e186
commit
6cd71bbf31
4 files changed
+17
-24
No files matched your search
+2
-2
@@ -26,7 +26,7 @@ interface ConstructorOptions {
|
||||
}
|
||||
|
||||
//MAIN CLASS
|
||||
class Bot extends EventEmitter {
|
||||
export class Bot extends EventEmitter {
|
||||
name: string;
|
||||
client: Client;
|
||||
commands: CommandManager;
|
||||
@@ -114,6 +114,7 @@ class Bot extends EventEmitter {
|
||||
try {
|
||||
await cmdMsg.command.start(m, cmdMsg.arguments);
|
||||
} catch (e) {
|
||||
this.emit("error", [e]);
|
||||
if (e instanceof PermissionsError) {
|
||||
this.messages.system.send(
|
||||
"PERMISSION",
|
||||
@@ -160,4 +161,3 @@ class Bot extends EventEmitter {
|
||||
|
||||
//EXPORTS
|
||||
export default Bot;
|
||||
export { Bot, Command };
|
||||
Reference in new issue
Block a user