docs: change registration example to use global commands (#8454)

This commit is contained in:
advaith
2022-08-10 09:25:31 -07:00
committed by GitHub
parent 38275fc53d
commit 64a4041a05
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ const rest = new REST({ version: '10' }).setToken('token');
try {
console.log('Started refreshing application (/) commands.');
await rest.put(Routes.applicationGuildCommands(CLIENT_ID, GUILD_ID), { body: commands });
await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands });
console.log('Successfully reloaded application (/) commands.');
} catch (error) {