@@ -188,17 +188,15 @@ export class CommandKit extends EventEmitter {
188
188
*/
189
189
async #init( ) {
190
190
// <!-- Setup event handler -->
191
- if ( this . #data. eventsPath ) {
192
- const eventHandler = new EventHandler ( {
193
- client : this . #data. client ,
194
- eventsPath : this . #data. eventsPath ,
195
- commandKitInstance : this ,
196
- } ) ;
191
+ const eventHandler = new EventHandler ( {
192
+ client : this . #data. client ,
193
+ eventsPath : this . #data. eventsPath ,
194
+ commandKitInstance : this ,
195
+ } ) ;
197
196
198
- await eventHandler . init ( ) ;
197
+ await eventHandler . init ( ) ;
199
198
200
- this . #data. eventHandler = eventHandler ;
201
- }
199
+ this . #data. eventHandler = eventHandler ;
202
200
203
201
// <!-- Setup validation handler -->
204
202
if ( this . #data. validationsPath ) {
@@ -212,24 +210,22 @@ export class CommandKit extends EventEmitter {
212
210
}
213
211
214
212
// <!-- Setup command handler -->
215
- if ( this . #data. commandsPath ) {
216
- const commandHandler = new CommandHandler ( {
217
- client : this . #data. client ,
218
- commandsPath : this . #data. commandsPath ,
219
- devGuildIds : this . #data. devGuildIds || [ ] ,
220
- devUserIds : this . #data. devUserIds || [ ] ,
221
- devRoleIds : this . #data. devRoleIds || [ ] ,
222
- validationHandler : this . #data. validationHandler ,
223
- skipBuiltInValidations : this . #data. skipBuiltInValidations || false ,
224
- commandkitInstance : this ,
225
- bulkRegister : this . #data. bulkRegister || false ,
226
- } ) ;
213
+ const commandHandler = new CommandHandler ( {
214
+ client : this . #data. client ,
215
+ commandsPath : this . #data. commandsPath ,
216
+ devGuildIds : this . #data. devGuildIds || [ ] ,
217
+ devUserIds : this . #data. devUserIds || [ ] ,
218
+ devRoleIds : this . #data. devRoleIds || [ ] ,
219
+ validationHandler : this . #data. validationHandler ,
220
+ skipBuiltInValidations : this . #data. skipBuiltInValidations || false ,
221
+ commandkitInstance : this ,
222
+ bulkRegister : this . #data. bulkRegister || false ,
223
+ } ) ;
227
224
228
- this . #data. commandHandler = commandHandler ;
225
+ this . #data. commandHandler = commandHandler ;
229
226
230
- await this . #initApp( ) ;
231
- await commandHandler . init ( ) ;
232
- }
227
+ await this . #initApp( ) ;
228
+ await commandHandler . init ( ) ;
233
229
}
234
230
235
231
async #initApp( ) {
0 commit comments