From 1c27bb9e532a83fb28a76370c9c6c17bfe86f72e Mon Sep 17 00:00:00 2001 From: Lachlan Date: Fri, 19 Mar 2021 17:05:34 +0800 Subject: [PATCH] Fix slash commands example --- src/guide/slash_commands/tag_bot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/slash_commands/tag_bot.md b/src/guide/slash_commands/tag_bot.md index 40e90b9..5757615 100644 --- a/src/guide/slash_commands/tag_bot.md +++ b/src/guide/slash_commands/tag_bot.md @@ -216,7 +216,7 @@ class TagBot extends Client { // I recommend making it for only one guild for now because Global Slash Commands can take max 1 hour to come live. this.slash.commands.create(command, 'Your Server/Guild ID') .then((cmd) => console.log(`Created Slash Command ${cmd.name}!`)) - .catch(() => console.log(`Failed to create ${cmd.name} command!`)); + .catch(() => console.log(`Failed to create ${command.name} command!`)); }) } }