mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-05-14 04:22:40 +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": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
<#include "member_author">
|
|
||||||
<@member_author member=memberInfo/>,
|
|
||||||
<#include "abstracto_color">,
|
<#include "abstracto_color">,
|
||||||
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
|
"imageUrl": "${avatarUrl}",
|
||||||
"fields": [
|
"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"/>",
|
"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"
|
"inline": "true"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -8,6 +8,18 @@
|
|||||||
<#include "member_avatar">
|
<#include "member_avatar">
|
||||||
"thumbnail": "<@member_display_avatar member=memberDisplay/>",
|
"thumbnail": "<@member_display_avatar member=memberDisplay/>",
|
||||||
"fields": [
|
"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"/>",
|
"name": "<@safe_include "userInfo_response_embed_id_field_title"/>",
|
||||||
"value": "${id?c}",
|
"value": "${id?c}",
|
||||||
@@ -27,11 +39,13 @@
|
|||||||
"inline": "true"
|
"inline": "true"
|
||||||
},
|
},
|
||||||
</#if>
|
</#if>
|
||||||
|
<#if joinDate?has_content>
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "userInfo_response_embed_joined_field_title"/>",
|
"name": "<@safe_include "userInfo_response_embed_joined_field_title"/>",
|
||||||
"value": "<@format_instant_date_time instant=joinDate/>",
|
"value": "<@format_instant_date_time instant=joinDate/>",
|
||||||
"inline": "true"
|
"inline": "true"
|
||||||
},
|
},
|
||||||
|
</#if>
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "userInfo_response_embed_registered_field_title"/>",
|
"name": "<@safe_include "userInfo_response_embed_registered_field_title"/>",
|
||||||
"value": "<@format_instant_date_time instant=creationDate/>",
|
"value": "<@format_instant_date_time instant=creationDate/>",
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Display name
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
User name
|
||||||
Reference in New Issue
Block a user