mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-22 05:51:29 +00:00
[AB-xxx] adding avatar to message embed
adding avatar to starboard post adding possibility to define a color for the starboard container fixing attachment logic for starboard post fixing streamer went offline message not using components v2
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"type": "textDisplay",
|
||||
<#assign userFound=author??>
|
||||
<#include "user_user_name">
|
||||
<#assign userText><#if author??><@user_user_name user=author/><#else><@safe_include "delete_user_name"/></#if></#assign>
|
||||
<#include "member_user_name">
|
||||
<#assign embeddingUserText><@member_user_name member=embeddingUser/></#assign>
|
||||
"content": "<@safe_include "message_embed_meta_info"/>"
|
||||
<#assign userAvatar><#if author??>${author.effectiveAvatarUrl}</#if></#assign>
|
||||
<#if userFound>
|
||||
"type": "section",
|
||||
"components": [
|
||||
{
|
||||
"type": "textDisplay",
|
||||
"content": "<@safe_include "message_embed_meta_info"/>"
|
||||
}
|
||||
],
|
||||
"accessory": {
|
||||
"type": "thumbnail",
|
||||
"url": "${userAvatar}"
|
||||
}
|
||||
<#else>
|
||||
"type": "textDisplay",
|
||||
"content": "<@safe_include "message_embed_meta_info"/>"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"type": "container",
|
||||
|
||||
Reference in New Issue
Block a user