message.embeds empty

I am working on a bot that checks the embeds on a message, but its just always empty, if I take the message link and take a look the message clearly has a embed. I do fetch the message before using, even with force enabled. Is there some common reason why this might be happening?
7 Replies
d.js toolkit
d.js toolkit3mo 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!
Amgelo
Amgelo3mo ago
do you have the MessageContent intent?
henry
henryOP3mo ago
thanks so much haven't tested it, but thats def it just didn't think embeds were related to content, but makes sense.
Amgelo
Amgelo3mo ago
don't forget that it's a privileged intent, you'll also need to enable it in the dev portal (apart from adding it to your Client constructor)
henry
henryOP3mo ago
👍
Amgelo
Amgelo3mo ago
if you're making a command that takes a message as a parameter you can consider using a message context menu command those don't require the intent when the user triggers the command you'll get its content right away
henry
henryOP3mo ago
not applicable in my case, but thanks for the info

Did you find this page helpful?