63 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!"discord.js": "^14.13.0"
you do not have the GuildMessages and/or MessageContent intent
when I put GuildMessages or MessageContent it shows error on my terminal
then you have to enable the intent in the developer portal
do you mean this one
![No description](https://cdn.answeroverflow.com/1173233449931382814/image.png)
the message content one yes
still doesnt work
restarted the bot and turned the message content to on
define does not work
did you add the intents
to your client constructor
okay now it works
and how are you listening for messages
when I use the IntentsBitField.GuildMessages it throws error
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.
npm ls discord.js
Didnt send that code jajajaaja
already installed?
thats not what i'm asking
just run the command