[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:
Sheldan
2025-07-19 23:57:43 +02:00
parent 8bb07ee281
commit 06ef5fc43b
6 changed files with 84 additions and 24 deletions

View File

@@ -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",