DEV Community

Discussion on: Send automated Discord messages through Webhooks using JavaScript

Collapse
 
censorrmc profile image
censorr

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.

Collapse
 
oskarcodes profile image
Oskar Codes

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

content: "The message\nto send"
Enter fullscreen mode Exit fullscreen mode

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

content: `The message
to send`
Enter fullscreen mode Exit fullscreen mode