diff --git a/modules/_deploy-global.js b/modules/_deploy-global.js index b9ffee9..33c6d6b 100755 --- a/modules/_deploy-global.js +++ b/modules/_deploy-global.js @@ -22,6 +22,21 @@ console.log(`Token: ${token} Client ID: ${clientId}`); const rest = new REST({ version: '9' }).setToken(token); +(async () => { + try { + console.log('Started deleting application (/) commands.'); + + await rest.put( + Routes.applicationCommands(clientId), + { body: "" }, + ); + + console.log('Successfully deleted application (/) commands.'); + } catch (error) { + console.error(error); + } +})(); + (async () => { try { console.log('Started refreshing application (/) commands.');