DEV Community

loading...

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 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`