#How do you listen for commands (e.g. !help)?

7 messages · Page 1 of 1 (latest)

eternal flameBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by staff
drowsy oracle
#

Sorry, I deleted the description because I saw another similar post but I am still confused. How may I get this command working? I'm used to new SlashCommandBuilder() in data: but I think I may be confusing myself.

celest vault
#

v14.16 does not have a ChatInputCommandBuilder in it, thats for the next release

#

Second, the builder is for building slash commands

#

Not prefix commands like !help

#

To use slash commands, I'd recommend following our guide

gusty rainBOT
#

guide Creating Your Bot: Creating slash commands
read more