Change Text Color Discord [BOT]

0

I'm trying to change the color of the text after doing a Discord chat cleanup. Example:

!cclear
  

(CHAT SUCCESSFULLY CLEANNED!) < - Appears in green color.

My code so far:

const Discord = require('discord.js');
const bot = new Discord.Client();
const pre = '!';

bot.on('message', (Message) =>{

    if(Message.content == pre + 'ping'){
        Message.channel.sendMessage('Pong!');
    }

    if(Message.content == pre + 'cclear'){
        Message.channel.bulkDelete(100);
        Message.channel.sendMessage('Chat successfully cleanned!');
    }

    if(Message.content == pre + 'commands'){
        Message.channel.sendMessage('!cclear [Limpa o chat do canal!]');
        Message.channel.sendMessage('!ping');
        Message.channel.sendMessage('!');
    }
});
    
asked by anonymous 09.12.2017 / 02:52

1 answer

0

Can not send messages with different colors. What you can eventually use is to use Syntax Hightlight to display text in different colors: link
The closest to green is using css

'''css
Mensagem'''

Result:

    
26.03.2018 / 17:25