From b9c68278730a213d41c9dee6e991c4d9defbba72 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 19 Feb 2023 19:02:17 -0500 Subject: [PATCH] Change to refresh commands not blindly update --- modules/_deploy-global.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.');