Discord.js: Is there any way to add more lines to a bot?

Created on 6 Dec 2020  路  3Comments  路  Source: discordjs/discord.js

I've seen another feature request about this but I didn't understand the replies. So i've been using this:
message.channel.send('message')
message.channel.send('message')
message.channel.send('message')
message.channel.send('message')
message.channel.send('message')
message.channel.send('message')
but they are in random orders and the last one has like a 20 second delay to it.
So is there anyway I can do something like
message.channel.send('message') ('message in line 2') ('message in line 3')

question (please use Discord instead)

All 3 comments

for help ask in the server: https://discord.gg/bRCvFy9

You can use async/await....
Edit: Use it only if you NEED to send separate messages otherwise you can use \n as @almostSouji has stated below

You should really use newline characters \n resulting in a linebreak instead of sending lots of messages back to back.

If you need help with discord.js installation or usage, please go to the discord.js Discord server instead:
https://discord.gg/bRCvFy9
This issue tracker is only for bug reports and enhancement suggestions. You won't receive any basic help here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BrandonCookeDev picture BrandonCookeDev  路  3Comments

ghost picture ghost  路  3Comments

PassTheMayo picture PassTheMayo  路  3Comments

Lombra picture Lombra  路  3Comments

xCuzImPro picture xCuzImPro  路  3Comments