Slash Command Interactions Doesn't Work
Hello,
So I am creating a new bot and for one reason the doesn't respond to the slash commands at all, the slash commands are registered correctly. But when I run them it does nothing and no errors pop up in console. For more information about the problem please tell me and I will provide it. Thank you!
11 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.do you have an interactionCreate event
or an event handler at all
yeah I have as usual
show the code
thats the starting code to check that everything works and the interactionCreate doesn't work
you return if your interaction is a ChatInputCommand
oh yeah silly me, I forgot to remove it.
thank you! Also one more question
how can I make it so when the bot doesn't trigger itself while I have !ip some commands might have !ip in the text of the reply
so it will create kinda a reply loop
It's good practice to make your bots ignore other bots, including itself. This can be done through a single line of code:
<message> being whatever you defined message as.
oh okay
thank you!
yw!
I will close the thread.