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
- 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!do you have the MessageContent intent?
thanks so much
haven't tested it, but thats def it
just didn't think embeds were related to content, but makes sense.
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)
👍
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
not applicable in my case, but thanks for the info