14 |
import Starboard from '../services/Starboard'; |
import Starboard from '../services/Starboard'; |
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'; |
18 |
|
import AutoClear from '../automod/AutoClear'; |
19 |
|
import RandomStatus from '../services/RandomStatus'; |
20 |
|
import DebugLogger from '../services/DebugLogger'; |
21 |
|
import BaseCLICommand from '../utils/structures/BaseCLICommand'; |
22 |
|
import discordModals from 'discord-modals'; |
23 |
|
|
24 |
export default class DiscordClient extends Client { |
export default class DiscordClient extends Client { |
25 |
private _commands = new Collection<string, BaseCommand>(); |
private _commands = new Collection<string, BaseCommand>(); |
26 |
|
private _cliCommands = new Collection<string, BaseCLICommand>(); |
27 |
private _events = new Collection<string, BaseEvent>(); |
private _events = new Collection<string, BaseEvent>(); |
28 |
|
|
29 |
rootdir: string; |
rootdir: string; |
41 |
starboard: Starboard; |
starboard: Starboard; |
42 |
server: Server; |
server: Server; |
43 |
cooldown: Cooldown; |
cooldown: Cooldown; |
44 |
|
startupManager: StartupManager; |
45 |
|
autoClear: AutoClear; |
46 |
|
randomStatus: RandomStatus; |
47 |
|
debugLogger: DebugLogger; |
48 |
|
|
49 |
static client: DiscordClient; |
static client: DiscordClient; |
50 |
|
|
72 |
this.starboard = new Starboard(this); |
this.starboard = new Starboard(this); |
73 |
this.server = new Server(this); |
this.server = new Server(this); |
74 |
this.cooldown = new Cooldown(this); |
this.cooldown = new Cooldown(this); |
75 |
|
this.startupManager = new StartupManager(this); |
76 |
|
this.autoClear = new AutoClear(this); |
77 |
|
this.randomStatus = new RandomStatus(this); |
78 |
|
this.debugLogger = new DebugLogger(this); |
79 |
|
|
80 |
DiscordClient.client = this; |
DiscordClient.client = this; |
81 |
|
discordModals(this); |
82 |
} |
} |
83 |
|
|
84 |
get commands(): Collection<string, BaseCommand> { |
get commands(): Collection<string, BaseCommand> { |
85 |
return this._commands; |
return this._commands; |
86 |
} |
} |
87 |
|
|
88 |
|
get cliCommands(): Collection<string, BaseCLICommand> { |
89 |
|
return this._cliCommands; |
90 |
|
} |
91 |
|
|
92 |
get events(): Collection<string, BaseEvent> { |
get events(): Collection<string, BaseEvent> { |
93 |
return this._events; |
return this._events; |
94 |
} |
} |