#not getting message content

7 messages · Page 1 of 1 (latest)

tiny bobcat
#

when i tring log message object it shows but when i log content it returns empty string i did't get what the problem so if you know help asap

vale tokenBOT
#
  • 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!
glass iris
#

show client constructor for intents

tiny bobcat
#

32767

next obsidianBOT
#

We highly recommend only specifying the intents you actually need.

  • Note, that 98303, 32767 or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
  • The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
glass iris
#

specify your intents

#

you lack the message content intent. your bot does not need all of the intents you have enabled, specify the ones your bot actually needs