We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58c8737 commit 9506be9Copy full SHA for 9506be9
src/events/ready.ts
@@ -38,9 +38,13 @@ export async function handle(): Promise<void> {
38
}
39
})
40
41
- if (config.production)
42
- await client.application?.commands.set(cmds)
43
- else
44
- await client.guilds.cache.get("247122362942619649")?.commands.set(cmds)
45
- Logger.info(`Commands registered for ${config.production}`)
+ try {
+ if (config.production)
+ await client.application?.commands.set(cmds)
+ else
+ await client.guilds.cache.get("247122362942619649")?.commands.set(cmds)
46
+ Logger.info(`Commands registered for ${config.production}`)
47
+ } catch (error) {
48
+ Logger.error("Unnable to register commands")
49
+ }
50
0 commit comments