Skip to content

Commit

Permalink
docs: change registration example to use global commands (#8454)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 committed Aug 10, 2022
1 parent 38275fc commit 64a4041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/README.md
Expand Up @@ -71,7 +71,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) {
Expand Down

0 comments on commit 64a4041

Please sign in to comment.