From 91eba3988fbf8072a2aef411afb1a30b7f1079d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Olausson=20Holten=C3=A4s?= Date: Sun, 6 Mar 2022 14:15:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Now=20credits=20is=20multi=20gui?= =?UTF-8?q?lded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/deploy-commands.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/deploy-commands.js b/src/deploy-commands.js index de26e09..7766e4f 100644 --- a/src/deploy-commands.js +++ b/src/deploy-commands.js @@ -22,7 +22,12 @@ module.exports = async () => { const rest = new REST({ version: '9' }).setToken(config.bot.token); - rest + await rest.put( + Routes.applicationCommands(clientId), + { body: commands }, + ); + + await rest .put(Routes.applicationGuildCommands(config.bot.clientId, config.bot.guildId), { body: commands, })