DEV Community


Discussion on: Send automated Discord messages through Webhooks using JavaScript

censorrmc profile image

Is there a way to make it so it sends multiple lined messages? In this it only allows me to send a message that is in all one line.

oskarcodes profile image
Oskar Codes Author

Add the character \n to create a newline, like so:

content: "The message\nto send"

Otherwise you could use backsticks instead of quotes, like so:

content: `The message
to send`