Embeds not added to the message

I'm trying to edit in an embed to a message that already exists but it seems to not work at all… If content isn't pass, the bot crashes due to Discord API throwing an error saying you can't send empty messages
3 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
❄ Christmas Ralsei
Node.js v17.5.0
Node.js v17.5.0
Uhh, seems it was due to it not having the permission to post embeds, but… why doesn't it throw an error describing that and just quietly failing?
조아오
조아오3y ago
I think the embeds are just supressed not rejected (like when you use <Message>.supressEmbeds(true)) You can check if the bot has the necessary permission before executing the command and present a error to the user
Want results from more Discord servers?
Add your server