From b8105f2f1dd23f9476e4bc7ed2473388b37a32b1 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 30 Apr 2020 22:28:21 +0200 Subject: [PATCH] Make the embed look better Signed-off-by: loicbersier --- event/listeners/guildCreate.js | 6 ++---- event/listeners/guildDelete.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/event/listeners/guildCreate.js b/event/listeners/guildCreate.js index c654813b..70be147c 100644 --- a/event/listeners/guildCreate.js +++ b/event/listeners/guildCreate.js @@ -19,13 +19,11 @@ class guildCreateListener extends Listener { .setTitle('New boiz in town') .setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4') .setThumbnail(guild.iconURL()) - .addField('Guild name', guild.name, true) - .addField('Guild ID', guild.id, true) + .addField('Guild', `${guild.name} (${guild.id})`) .addField('Total number of members', guild.memberCount, true) .addField('Number of users', guild.memberCount - botCount, true) .addField('Number of bots', botCount, true) - .addField('Owner', guild.owner.user.username, true) - .addField('Owner ID', guild.owner.id, true) + .addField('Owner', `${guild.owner.user.username} (${guild.owner.id})`, true) .setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`) .setTimestamp(); diff --git a/event/listeners/guildDelete.js b/event/listeners/guildDelete.js index 292ad27c..2fd36706 100644 --- a/event/listeners/guildDelete.js +++ b/event/listeners/guildDelete.js @@ -21,13 +21,11 @@ class guildCreateListener extends Listener { .setTitle('Some mofo just removed me from there guild :(') .setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4') .setThumbnail(guild.iconURL()) - .addField('Guild name', guild.name, true) - .addField('Guild ID', guild.id, true) + .addField('Guild', `${guild.name} (${guild.id})`) .addField('Total number of members', guild.memberCount, true) .addField('Number of users', guild.memberCount - botCount, true) .addField('Number of bots', botCount, true) - .addField('Owner', guild.owner.user.username, true) - .addField('Owner ID', guild.owner.id, true) + .addField('Owner', `${guild.owner.user.username} (${guild.owner.id})`, true) .setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`) .setTimestamp();