mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
add more metadata to servers
This commit is contained in:
parent
938dbe13aa
commit
9ed3d15a44
1 changed files with 5 additions and 1 deletions
|
@ -35,10 +35,14 @@ module.exports = {
|
||||||
const g = context.guild
|
const g = context.guild
|
||||||
// Guild Card
|
// Guild Card
|
||||||
let guildCard = createEmbed("default", context, {
|
let guildCard = createEmbed("default", context, {
|
||||||
description: `${icon("home")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}\n${icon("user_shield")} **Roles: **${g.roles.length}`,
|
description: `${icon("home")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}\n${icon("user_shield")} **Roles: **${g.roles.length}\n${icon("user_multiple")} **Member Count: **${context.guild.memberCount}`,
|
||||||
fields: []
|
fields: []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if(context.guild.premiumSubscriptionCount >= 1) {
|
||||||
|
description += `\n${icon("boost")} **Server Boosts: **${context.guild.premiumSubscriptionCount} (Level ${context.message.guild.premiumTier})`
|
||||||
|
}
|
||||||
|
|
||||||
if(g.iconUrl){
|
if(g.iconUrl){
|
||||||
guildCard.thumbnail = {
|
guildCard.thumbnail = {
|
||||||
url: g.iconUrl + `?size=4096`
|
url: g.iconUrl + `?size=4096`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue