From fd12f4a373b04d5a65dcdc96b0925c2891ba10c7 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 31 Mar 2019 00:37:35 +0100 Subject: [PATCH] changed the embed a little and fixed thumbnail --- event/listeners/guildCreate.js | 10 +++++++--- event/listeners/guildDelete.js | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/event/listeners/guildCreate.js b/event/listeners/guildCreate.js index 6fb2bee7..82de2250 100644 --- a/event/listeners/guildCreate.js +++ b/event/listeners/guildCreate.js @@ -16,10 +16,14 @@ class guildCreateListener extends Listener { const channel = this.client.channels.get(statsChannel); const addEmbed = new MessageEmbed() .setColor('#52e80d') - .setTitle('Someone added me ! YAY :D') + .setTitle('New boiz in town') .setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4') - .setThumbnail(guild.iconURL) - .setDescription(`${guild.name}\n${guild.id}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\n(${guild.owner.id})`) + .setThumbnail(guild.iconURL()) + .addField('Guild name', guild.name, true) + .addField('Guild ID', guild.id, true) + .addField('Numbers of members', guild.memberCount) + .addField('Owner', guild.owner.user.username, true) + .addField('Ower ID', guild.owner.id, true) .setTimestamp(); channel.send({ embed: addEmbed }); diff --git a/event/listeners/guildDelete.js b/event/listeners/guildDelete.js index a3fc1f59..d97e1dc7 100644 --- a/event/listeners/guildDelete.js +++ b/event/listeners/guildDelete.js @@ -17,10 +17,14 @@ class guildCreateListener extends Listener { const kickEmbed = new MessageEmbed() .setColor('#FF0000') - .setTitle('They kicked me out :(') + .setTitle('Some mofo just removed me from there guild :(') .setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4') - .setThumbnail(guild.iconURL) - .setDescription(`${guild.name}\n${guild.id}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\n(${guild.owner.id})`) + .setThumbnail(guild.iconURL()) + .addField('Guild name', guild.name, true) + .addField('Guild ID', guild.id, true) + .addField('Numbers of members', guild.memberCount) + .addField('Owner', guild.owner.user.username, true) + .addField('Ower ID', guild.owner.id, true) .setTimestamp(); channel.send({ embed: kickEmbed });