#MessageEmbed description must be a string.

11 messages · Page 1 of 1 (latest)

earnest void
#

When running my command, I'm getting this error requiring my message embed description to be a string although it is ```js
new MessageEmbed()
.setDescription(You can not ban yourself!)
.setColor(0xed4245)

karmic reefBOT
#

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

ember thorn
#

the error is not from this embed, follow the stack trace

earnest void
ember thorn
#

there are other embeds in your code, one of which (on line 48 in ban.js) is causing this error

barren fog
#

maybe you didn't save the code (use ctrl + s to save)

earnest void
earnest void
ember thorn
#

so you're saying line 48 is setColor while in the stack trace it's clearly the one with setDescription? the unsaved file theory seems all the more likelier

#

or do you use ts without source maps?

earnest void