Skip to content

Commit

Permalink
Merge pull request #2 from waterflamev8/fix/slash-cmd-eg
Browse files Browse the repository at this point in the history
fix: update slash commands example
  • Loading branch information
DjDeveloperr authored Mar 19, 2021
2 parents 6feb9df + 1c27bb9 commit afc98d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/slash_commands/tag_bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!`));
})
}
}
Expand Down

0 comments on commit afc98d7

Please sign in to comment.