Discord.js: Bot message next line

Created on 23 Jun 2016  路  4Comments  路  Source: discordjs/discord.js

Hello,

Is it possilbe for the bot to go to the next line within the same message?
Now i'm doing this:

 bot.sendMessage(msg.channel, "Online users:");
 bot.sendMessage(msg.channel, "user 1");
 bot.sendMessage(msg.channel, "user 2:");

but sometimes the order is incorrect

would be nice if i could do something like this:
bot.sendMessage(msg.channel, "Online users:" + '<br>' + "user 1" + '<br>' + "user 2" );

Thanks,
kevin

question (please use Discord instead)

Most helpful comment

use \n to create a new line, is like <br>

All 4 comments

"Line 1 \n Line 2"

use \n to create a new line, is like <br>

could people stop responding to old and already solved/closed issues, jeez,

lol

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xCuzImPro picture xCuzImPro  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments

iCrawl picture iCrawl  路  3Comments

smchase picture smchase  路  3Comments

ghost picture ghost  路  3Comments