mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-16 20:29:11 +00:00
[AB-xxx] refactoring avatar template
adding more info and reducing some information from userInfo command
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=memberInfo/>,
|
||||
<#include "abstracto_color">,
|
||||
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
|
||||
"imageUrl": "${avatarUrl}",
|
||||
"fields": [
|
||||
{
|
||||
<#include "member_user_name">
|
||||
"name": "<@safe_include "showAvatar_response_embed_user_field_title"/>",
|
||||
"value": "<@member_member_name member=memberInfo/>",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "showAvatar_response_embed_image_field_title"/>",
|
||||
"value": "[<@safe_include "showAvatar_response_embed_image_field_value_display"/>](${memberInfo.user.effectiveAvatarUrl})",
|
||||
"value": "[<@safe_include "showAvatar_response_embed_image_field_value_display"/>](${avatarUrl})",
|
||||
"inline": "true"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -8,6 +8,18 @@
|
||||
<#include "member_avatar">
|
||||
"thumbnail": "<@member_display_avatar member=memberDisplay/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_user_name_field_title"/>",
|
||||
"value": "${memberDisplay.userName}",
|
||||
"inline": "true"
|
||||
},
|
||||
<#if memberDisplay.displayName?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_global_name_field_title"/>",
|
||||
"value": "${memberDisplay.displayName}",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_id_field_title"/>",
|
||||
"value": "${id?c}",
|
||||
@@ -27,11 +39,13 @@
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
<#if joinDate?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_joined_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=joinDate/>",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_registered_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=creationDate/>",
|
||||
|
||||
Reference in New Issue
Block a user