diff options
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -107,15 +107,10 @@ client.on(Events.ThreadCreate, async (thread) => { } }); -try { - await rest.put(Routes.applicationCommands(clientId), { - body: slashCommands.map(command => command.slashCommand.toJSON()), - }); +await rest.put(Routes.applicationCommands(clientId), { + body: slashCommands.map(command => command.slashCommand.toJSON()), +}); - await client.login(token); +await client.login(token); - client.user?.setActivity(activity); -} catch (error) { - console.error("Discord bot failed to start", error); - process.exit(1); -} +client.user?.setActivity(activity); |
