15 |
import Server from '../api/Server'; |
import Server from '../api/Server'; |
16 |
import Cooldown from '../automod/Cooldown'; |
import Cooldown from '../automod/Cooldown'; |
17 |
import StartupManager from '../services/StartupManager'; |
import StartupManager from '../services/StartupManager'; |
18 |
|
import AutoClear from '../automod/AutoClear'; |
19 |
|
|
20 |
export default class DiscordClient extends Client { |
export default class DiscordClient extends Client { |
21 |
private _commands = new Collection<string, BaseCommand>(); |
private _commands = new Collection<string, BaseCommand>(); |
37 |
server: Server; |
server: Server; |
38 |
cooldown: Cooldown; |
cooldown: Cooldown; |
39 |
startupManager: StartupManager; |
startupManager: StartupManager; |
40 |
|
autoClear: AutoClear; |
41 |
|
|
42 |
static client: DiscordClient; |
static client: DiscordClient; |
43 |
|
|
66 |
this.server = new Server(this); |
this.server = new Server(this); |
67 |
this.cooldown = new Cooldown(this); |
this.cooldown = new Cooldown(this); |
68 |
this.startupManager = new StartupManager(this); |
this.startupManager = new StartupManager(this); |
69 |
|
this.autoClear = new AutoClear(this); |
70 |
|
|
71 |
DiscordClient.client = this; |
DiscordClient.client = this; |
72 |
} |
} |