Why Does my Bot not react to Prefixes?
My bot is a Smash or Pass system with pre-definable "models." I don't understand why it's not responding to my prefixes; I mean, it's not throwing any errors, and everything seems to be working fine. If anyone needs more information, please let me know. :))
13 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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 stafffirst of all that is v13 code
combined with v14
Huh
But why everything works?
if everything works then why are you asking why it does not work
I meant the bot is online etc but the bot doesnt react to prefixes
Does the message event fire at all?
Log the msg object in the message create event.
How?
Btw, soory iam a noob in Discord.Js
It’s suggested that you have a solid understanding of javascript basics before using djs. You can find resources in #resources
Tag suggestion for @Tenkza:
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreCould it be that message.content === “!StartS” should be “!Start”?
depends on what you want your command to be spelled like
Ideally you'd chuck a .toLowerCase() in there before checking the content
Might be intent issue
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View