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) {