RichEmbed, title customisation

How do I get the title in RichEmbed as the server name,

Code that I am using

        if(toKick.kickable) {
            let x = new Discord.RichEmbed()
            .setTitle('Kick')
            .addField('Member Kicked', toKick)
            .addField('Kicked by', message.author)
            .addField('Reason', reason)
            .addField('Date', message.createdAt)
            .setColor(0xbdd7ff);

            toKick.send(x).then(() => {
            message.channel.send(x); 
            toKick.kick();
            })


Read more here: https://stackoverflow.com/questions/64943110/richembed-title-customisation

Content Attribution

This content was originally published by notbritish at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: