Fix image not showing for the author and make author name the bot username and add field for the current maintainer

This commit is contained in:
loicbersier 2019-10-27 13:19:54 +01:00
parent 0402052870
commit 56bbc0212f

View file

@ -30,16 +30,14 @@ class aboutCommand extends Command {
} }
const aboutEmbed = new MessageEmbed() const aboutEmbed = new MessageEmbed()
.setColor('#ff9900') .setColor('#ff9900')
.setAuthor(`${this.client.users.get(ownerID).username}#${this.client.users.get(ownerID).discriminator} (${ownerID})`, this.client.user.avatarURL) .setAuthor(this.client.user.username, this.client.user.avatarURL())
.setTitle('About me') .setTitle('About me')
.setURL('https://gitlab.com/LoicBersier/DiscordBot') .setURL('https://gitlab.com/LoicBersier/DiscordBot')
.setDescription(description) .setDescription(description)
.setFooter(`Gitlab link in the title | Original bot made by ${this.client.users.get('267065637183029248').username}#${this.client.users.get('267065637183029248').discriminator} (267065637183029248)`); .addField('Current maintainer: ', `${this.client.users.get(ownerID).username}#${this.client.users.get(ownerID).discriminator} (${ownerID})`)
.setFooter(`Gitlab link in the title | Original bot made by ${this.client.users.get('267065637183029248').username}#${this.client.users.get('267065637183029248').discriminator} (267065637183029248)`); // Please don't change the "original bot made by"
message.channel.send(aboutEmbed); message.channel.send(aboutEmbed);
} }