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. :))
No description
No description
13 Replies
d.js toolkit
d.js toolkit7mo ago
- 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 staff
treble/luna
treble/luna7mo ago
first of all that is v13 code combined with v14
Tenkza
Tenkza7mo ago
Huh But why everything works?
treble/luna
treble/luna7mo ago
if everything works then why are you asking why it does not work
Tenkza
Tenkza7mo ago
I meant the bot is online etc but the bot doesnt react to prefixes
SpecialSauce
SpecialSauce7mo ago
Does the message event fire at all? Log the msg object in the message create event.
Tenkza
Tenkza7mo ago
How? Btw, soory iam a noob in Discord.Js
SpecialSauce
SpecialSauce7mo ago
It’s suggested that you have a solid understanding of javascript basics before using djs. You can find resources in #resources
d.js docs
d.js docs7mo ago
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 more
Jay
Jay7mo ago
Could it be that message.content === “!StartS” should be “!Start”?
treble/luna
treble/luna7mo ago
depends on what you want your command to be spelled like Ideally you'd chuck a .toLowerCase() in there before checking the content
Abiru Ekanayakaツ
Might be intent issue
Disaster
Disaster7mo ago
Is that cache.get('CHANNEL_ID') valid code in the first screenshot with the parameter being literally 'CHANNEL_ID'? That looks clunky Thonk