diff --git a/bot/src/slashCommands/register.ts b/bot/src/slashCommands/register.ts index 2d0956ef3..0036defc7 100644 --- a/bot/src/slashCommands/register.ts +++ b/bot/src/slashCommands/register.ts @@ -32,7 +32,7 @@ const rest = new REST({ export const registerSlashCommands = async (client: Client): Promise => { try { logger.info("Registering slash commands"); - await rest.put(Routes.applicationCommands(client.application.id), { + await rest.put(Routes.applicationCommands(client.application!.id), { body: slashCommands.map((command) => command.info) }); } catch (e) {