S
S
Sonada2019-01-28 13:07:06
JavaScript
Sonada, 2019-01-28 13:07:06

How to format text in a discord bot?

How to make the bot write the same as in the picture. Namely, in a frame, with a colored stripe on the left and discord markup.
5c4ed3f058590215057314.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Twistiks, 2019-02-09
@Sonada

I don't know how to format the text, but how to make text in a frame:
const { Client, RichEmbed } = require('discord.js');
// Create an instance of a Discord client
const client = new Client();
client.on('ready', () => {
console.log('What will he write to the console');
});
client.on('message', message => {
// If the message is "how to embed"
if (message.content === 'how to embed') {
const embed = new RichEmbed()
.setTitle('Title ')
.setColor(0xColor without #)
.setDescription('Text');
message.channel.send(embed);
}
});
client.login('

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question