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('!');
}
});