show guild icon when bot get invited or kicked

This commit is contained in:
Loic Bersier 2018-09-27 15:36:24 +02:00
parent f139270766
commit 4dcd778a2c

View file

@ -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()