()
| 308 | } |
| 309 | |
| 310 | async registerCommands() { |
| 311 | try { |
| 312 | const { clientId, guildId, multiGuild } = this.config.bot; |
| 313 | await registerSlashCommands(this, { clientId, guildId, multiGuild }); |
| 314 | } catch (error) { |
| 315 | logger.error('Error registering commands:', error); |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | async shutdown(reason = 'UNKNOWN') { |
| 320 | shutdownLog(`Bot is shutting down (${reason})...`); |