not getting message content

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
7 Replies
d.js toolkit
d.js toolkit7mo 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!
Mark
Mark7mo ago
show client constructor for intents
NotUnknown
NotUnknown7mo ago
32767
d.js docs
d.js docs7mo ago
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.
Mark
Mark7mo ago
specify your intents
No description
Mark
Mark7mo ago
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
NotUnknown
NotUnknown7mo ago
oh thanks