From d4c13b93d6050903ea6702030a512d631b6b4081 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Fri, 9 Feb 2024 22:07:14 +0100 Subject: [PATCH] feat: globalise commands --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index cdc856e..e32acc1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,7 @@ const rest = new REST().setToken(process.env.TOKEN!); // The put method is used to fully refresh all commands in the guild with the current set const data = await rest.put( - Routes.applicationGuildCommands('872411739155726336', '1127731341283307520'), + Routes.applicationCommands('872411739155726336'), { body: commandsArray.map(cmd => cmd.builder) }, );