mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed typos in the slash command register example (#6292)
## First "example usage" example Added a period to the first console.log for consistency. Corrected typo in second console.log to read "Successfully".
This commit is contained in:
committed by
GitHub
parent
6b2098f7c7
commit
00d5ceebf7
@@ -55,14 +55,14 @@ const rest = new REST({ version: '9' }).setToken('token');
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
console.log('Started refreshing application (/) commands');
|
console.log('Started refreshing application (/) commands.');
|
||||||
|
|
||||||
await rest.put(
|
await rest.put(
|
||||||
Routes.applicationGuildCommands(CLIENT_ID, GUILD_ID),
|
Routes.applicationGuildCommands(CLIENT_ID, GUILD_ID),
|
||||||
{ body: commands },
|
{ body: commands },
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('Sucessfully reloaded application (/) commands.');
|
console.log('Successfully reloaded application (/) commands.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user