From 64a4041a05e9514334a9f9e1f38a1ea18bb676d5 Mon Sep 17 00:00:00 2001 From: advaith Date: Wed, 10 Aug 2022 09:25:31 -0700 Subject: [PATCH] docs: change registration example to use global commands (#8454) --- README.md | 2 +- packages/discord.js/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc2359765..033afd0f7 100644 --- a/README.md +++ b/README.md @@ -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) { diff --git a/packages/discord.js/README.md b/packages/discord.js/README.md index 5746bf804..dd196a1ef 100644 --- a/packages/discord.js/README.md +++ b/packages/discord.js/README.md @@ -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) {