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
d.js toolkit
d.js toolkit3mo 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
chewie 🌈
chewie 🌈3mo ago
do you have the required intents for message commands? Guilds, GuildMessages and MessageContent specifically
Zay
Zay3mo ago
Ya
chewie 🌈
chewie 🌈3mo ago
Ya as in you have them?
Zay
Zay3mo ago
Yes I do
chewie 🌈
chewie 🌈3mo ago
show your client constructor and messageCreate event
Zay
Zay3mo ago
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
chewie 🌈
chewie 🌈3mo ago
again show your client constructor and messageCreate event
Zay
Zay3mo ago
How do I do that
chewie 🌈
chewie 🌈3mo ago
you take it and post it ❓
Zay
Zay3mo ago
So basically you wanna see the whole script 1 sec
chewie 🌈
chewie 🌈3mo ago
the relevant parts, yes
Zay
Zay3mo ago
chewie 🌈
chewie 🌈3mo ago
thats not even v13 code please update, thanks
d.js docs
d.js docs3mo ago
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)
Zay
Zay3mo ago
What version is it
chewie 🌈
chewie 🌈3mo ago
v12 or worse
Zay
Zay3mo ago
Oh shit wtf 😭