diff --git a/src/scripts/pushCommands.ts b/src/scripts/pushCommands.ts index 5b17fbb..e06cf18 100644 --- a/src/scripts/pushCommands.ts +++ b/src/scripts/pushCommands.ts @@ -22,13 +22,14 @@ const rest = new REST().setToken(config.tokens.Discord); (async () => { const me = await rest.get(Routes.oauth2CurrentApplication()) as RESTGetAPIOAuth2CurrentApplicationResult; - console.log(`Started refreshing ${post.length} application commands.`); - if (guildId && guildId != "") + if (guildId && guildId != "") { + console.log(`Started refreshing ${post.length} application guild (${guildId}) commands.`); await rest.put( Routes.applicationGuildCommands(me.id, guildId), { body: post }, ); - else { + } else { + console.log(`Started refreshing ${post.length} application global commands.`); await rest.put( Routes.applicationCommands(me.id), { body: post },