Message content is empty despite of intents

Hello! I'm trying to get the content of the message being reacted to with my bot but the content is always empty. I have both "Server Members Intent" and Message Content Intent" turned on in my developer dashboard and them required with:
'Guilds',
'GuildMembers',
"GuildMessages",
"GuildMessageReactions",
'Guilds',
'GuildMembers',
"GuildMessages",
"GuildMessageReactions",
reactionChannel.messages.fetch(reaction.message.id).then(message => {
console.log(message);
console.log(message.content);
})
reactionChannel.messages.fetch(reaction.message.id).then(message => {
console.log(message);
console.log(message.content);
})
I am successfully able to fetch the message but the content is just empty. What am I missing in order to be able fetch and read the message content?
3 Replies
d.js toolkit
d.js toolkit8mo 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 OP
treble/luna
treble/luna8mo ago
You need the MessageContent intent
Skuffies
Skuffies8mo ago
Thank you. I can't hate how long I was stuck on that...