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()
            .addField('Member Kicked', toKick)
            .addField('Kicked by',
            .addField('Reason', reason)
            .addField('Date', message.createdAt)

            toKick.send(x).then(() => {

Read more here:

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: