Adjusted serverinfo, added message on premature image request end
This commit is contained in:
parent
64462f2202
commit
72efad0928
3 changed files with 12 additions and 9 deletions
|
@ -10,6 +10,9 @@ class ServerInfoCommand extends Command {
|
|||
thumbnail: {
|
||||
url: this.message.channel.guild.iconURL
|
||||
},
|
||||
image: {
|
||||
url: this.message.channel.guild.bannerURL
|
||||
},
|
||||
color: 16711680,
|
||||
fields: [
|
||||
{
|
||||
|
@ -20,25 +23,24 @@ class ServerInfoCommand extends Command {
|
|||
name: "👤 **Owner:**",
|
||||
value: owner ? `${owner.user.username}#${owner.user.discriminator}` : this.message.channel.guild.ownerID
|
||||
},
|
||||
{
|
||||
name: "🗺 **Region:**",
|
||||
value: this.message.channel.guild.region
|
||||
},
|
||||
{
|
||||
name: "🗓 **Created on:**",
|
||||
value: `<t:${Math.floor(this.message.channel.guild.createdAt / 1000)}:F>`
|
||||
},
|
||||
{
|
||||
name: "👥 **Users:**",
|
||||
value: this.message.channel.guild.memberCount
|
||||
value: this.message.channel.guild.memberCount,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "💬 **Channels:**",
|
||||
value: this.message.channel.guild.channels.size
|
||||
value: this.message.channel.guild.channels.size,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "😃 **Emojis:**",
|
||||
value: this.message.channel.guild.emojis.length
|
||||
value: this.message.channel.guild.emojis.length,
|
||||
inline: true
|
||||
}
|
||||
]
|
||||
}]
|
||||
|
@ -49,4 +51,4 @@ class ServerInfoCommand extends Command {
|
|||
static aliases = ["server"];
|
||||
}
|
||||
|
||||
export default ServerInfoCommand;
|
||||
export default ServerInfoCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue