From 4dcd778a2c3c2690cbcbb8530b9c0332945240d0 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 27 Sep 2018 15:36:24 +0200 Subject: [PATCH] show guild icon when bot get invited or kicked --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 3fd9f988..64e72bff 100644 --- a/index.js +++ b/index.js @@ -45,6 +45,7 @@ client.registry const addEmbed = new Discord.RichEmbed() .setColor("#52e80d") .setTitle('Someone added me ! YAY :D') + .setThumbnail(guild.iconURL) .setDescription(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}`) .setTimestamp() @@ -57,6 +58,7 @@ client.registry const kickEmbed = new Discord.RichEmbed() .setColor("#FF0000") .setTitle('They kicked me out :(') + .setThumbnail(guild.iconURL) .setDescription(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\nOwner ID: ${guild.owner}`) .setTimestamp()