[AB-273] improving display of server features and adding text and voice channel count to server info

This commit is contained in:
Sheldan
2021-05-29 01:20:01 +02:00
parent 60d1c40153
commit 14bfbaae80
3 changed files with 13 additions and 1 deletions

View File

@@ -29,6 +29,16 @@
"value": "${guild.timeCreated}", "value": "${guild.timeCreated}",
"inline": "true" "inline": "true"
}, },
{
"name": "<@safe_include "serverinfo_embed_text_channel_count_field_title"/>",
"value": "${guild.textChannels?size}",
"inline": "true"
},
{
"name": "<@safe_include "serverinfo_embed_voice_channel_count_field_title"/>",
"value": "${guild.voiceChannels?size}",
"inline": "true"
},
{ {
"name": "<@safe_include "serverinfo_embed_emote_count_title"/>", "name": "<@safe_include "serverinfo_embed_emote_count_title"/>",
"value": "${guild.emotes?size}", "value": "${guild.emotes?size}",
@@ -41,7 +51,7 @@
}, },
{ {
"name": "<@safe_include "serverinfo_embed_features_field_title"/>", "name": "<@safe_include "serverinfo_embed_features_field_title"/>",
"value": "<#list guild.features as feature>${feature}<#else><@safe_include "serverinfo_embed_features_no_features"/></#list>", "value": "<#list guild.features as feature>${feature}<#sep>, <#else><@safe_include "serverinfo_embed_features_no_features"/></#list>",
"inline": "true" "inline": "true"
} }
] ]