feat: globalise commands

This commit is contained in:
TheClashFruit 2024-02-09 22:07:14 +01:00
parent cec941287a
commit d4c13b93d6
Signed by: TheClashFruit
GPG key ID: D61666AC77D1C29F

View file

@ -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 // The put method is used to fully refresh all commands in the guild with the current set
const data = await rest.put( const data = await rest.put(
Routes.applicationGuildCommands('872411739155726336', '1127731341283307520'), Routes.applicationCommands('872411739155726336'),
{ body: commandsArray.map(cmd => cmd.builder) }, { body: commandsArray.map(cmd => cmd.builder) },
); );