changed the embed a little and fixed thumbnail

This commit is contained in:
Supositware 2019-03-31 00:37:35 +01:00
parent db59873db7
commit fd12f4a373
2 changed files with 14 additions and 6 deletions

View file

@ -16,10 +16,14 @@ class guildCreateListener extends Listener {
const channel = this.client.channels.get(statsChannel); const channel = this.client.channels.get(statsChannel);
const addEmbed = new MessageEmbed() const addEmbed = new MessageEmbed()
.setColor('#52e80d') .setColor('#52e80d')
.setTitle('Someone added me ! YAY :D') .setTitle('New boiz in town')
.setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4') .setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4')
.setThumbnail(guild.iconURL) .setThumbnail(guild.iconURL())
.setDescription(`${guild.name}\n${guild.id}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\n(${guild.owner.id})`) .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(); .setTimestamp();
channel.send({ embed: addEmbed }); channel.send({ embed: addEmbed });

View file

@ -17,10 +17,14 @@ class guildCreateListener extends Listener {
const kickEmbed = new MessageEmbed() const kickEmbed = new MessageEmbed()
.setColor('#FF0000') .setColor('#FF0000')
.setTitle('They kicked me out :(') .setTitle('Some mofo just removed me from there guild :(')
.setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4') .setURL('https://www.youtube.com/watch?v=6n3pFFPSlW4')
.setThumbnail(guild.iconURL) .setThumbnail(guild.iconURL())
.setDescription(`${guild.name}\n${guild.id}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\n(${guild.owner.id})`) .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(); .setTimestamp();
channel.send({ embed: kickEmbed }); channel.send({ embed: kickEmbed });