#no errors etc not not running script

26 messages · Page 1 of 1 (latest)

restive cosmos
#

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

winged juncoBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
pale zinc
#

do you have the required intents for message commands?

#

Guilds, GuildMessages and MessageContent specifically

pale zinc
#

Ya as in you have them?

restive cosmos
#

Yes I do

pale zinc
#

show your client constructor and messageCreate event

restive cosmos
#

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

pale zinc
#

again

#

show your client constructor and messageCreate event

restive cosmos
#

How do I do that

pale zinc
#

you take it

#

and post it

#

restive cosmos
#

So basically you wanna see the whole script

#

1 sec

pale zinc
#

the relevant parts, yes

restive cosmos
pale zinc
#

thats not even v13 code

#

please update, thanks

clear nightBOT
#

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)
restive cosmos
#

What version is it

pale zinc
#

v12 or worse