no errors etc not not running script
Hey I’m using discord.js in VS code my bot is online but running the main script to utilise the bot isn’t working there no issues showing up in VSC what I mean by using the main script is I’m making a moderation bot so when I typed !mute nothing worked
18 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 staffdo you have the required intents for message commands?
Guilds, GuildMessages and MessageContent specifically
Ya
Ya as in you have them?
Yes I do
show your client constructor and messageCreate event
I did have an issue the first time
Cause it wasn’t working with intend.flag
But I resolved it but bot doesn’t respond to anything
again
show your client constructor and messageCreate event
How do I do that
you take it
and post it
❓
So basically you wanna see the whole script
1 sec
the relevant parts, yes
thats not even v13 code
please update, thanks
Version 14 has released! Please update at your earliest convenience.
- Update:
npm rm discord.js
npm i discord.js
- Update guide (use CTRL
+ F
to search for the old method or property)What version is it
v12 or worse
Oh shit wtf 😭