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
• 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.
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?
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