[OPB-42] aligning templates with new multi embed support

This commit is contained in:
Sheldan
2021-12-08 16:40:35 +01:00
parent eae07fd07c
commit aa4de8f571
11 changed files with 190 additions and 148 deletions

View File

@@ -1,3 +1,5 @@
{
"embeds": [
{ {
"title": { "title": {
"title": "<@safe_include "warning_threshold_reached_notification_title"/>" "title": "<@safe_include "warning_threshold_reached_notification_title"/>"
@@ -11,3 +13,5 @@
<#assign messageId=messageId> <#assign messageId=messageId>
"description": "<@safe_include "warning_threshold_reached_notification_description"/>" "description": "<@safe_include "warning_threshold_reached_notification_description"/>"
} }
]
}

View File

@@ -1,3 +1,5 @@
{
"embeds": [
{ {
"title": { "title": {
"title": "<@safe_include "starboard_post_created_title"/>" "title": "<@safe_include "starboard_post_created_title"/>"
@@ -39,3 +41,5 @@
} }
] ]
} }
]
}

View File

@@ -1,3 +1,5 @@
{
"embeds": [
{ {
"title": { "title": {
"title": "<@safe_include "starboard_post_deleted_title"/>" "title": "<@safe_include "starboard_post_deleted_title"/>"
@@ -31,3 +33,5 @@
} }
] ]
} }
]
}

View File

@@ -1,3 +1,5 @@
{
"embeds": [
{ {
<#include "abstracto_color">, <#include "abstracto_color">,
"description": " "description": "
@@ -12,3 +14,5 @@
<#else> <#else>
<@safe_include "FAQUsage_no_usages"/></#list>" <@safe_include "FAQUsage_no_usages"/></#list>"
} }
]
}

View File

@@ -2,6 +2,8 @@
<#if additionalMessage??> <#if additionalMessage??>
"additionalMessage": "${additionalMessage?json_string}" "additionalMessage": "${additionalMessage?json_string}"
</#if> </#if>
"embeds": [
{
<#if description?? || imageURL??> <#if description?? || imageURL??>
<#include "user_author"> <#include "user_author">
<#if additionalMessage??>,</#if> <#if additionalMessage??>,</#if>
@@ -19,3 +21,5 @@
</#if> </#if>
</#if> </#if>
} }
]
}

View File

@@ -1,3 +1,5 @@
{
"embeds": [
{ {
<#include "abstracto_color">, <#include "abstracto_color">,
"description": " "description": "
@@ -18,3 +20,5 @@
<#else> <#else>
<@safe_include "listFAQCommands_no_commands"/></#list>" <@safe_include "listFAQCommands_no_commands"/></#list>"
} }
]
}

View File

@@ -2,11 +2,17 @@
<#assign roleMention="<@&479202891358535681>"/> <#assign roleMention="<@&479202891358535681>"/>
<#assign authorMention>${author.user.name}#${author.user.discriminator}</#assign> <#assign authorMention>${author.user.name}#${author.user.discriminator}</#assign>
"additionalMessage": "<@safe_include "news_post_description"/>", "additionalMessage": "<@safe_include "news_post_description"/>",
"embeds": [
{
<#if message.attachments?size gt 0> <#if message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}", "imageUrl": "${message.attachments[0].proxyUrl}",
</#if> </#if>
"metaConfig": { "metaConfig": {
"allowsRoleMention": true,
"preventEmptyEmbed": true "preventEmptyEmbed": true
} }
} }
],
"messageConfig": {
"allowsRoleMention": true
}
}

View File

@@ -1,3 +1,5 @@
{
"embeds": [
{ {
<#include "abstracto_color">, <#include "abstracto_color">,
<#include "member_author"> <#include "member_author">
@@ -15,3 +17,5 @@
</#list> </#list>
] ]
} }
]
}

View File

@@ -1,5 +1,9 @@
{
"embeds": [
{ {
<#include "abstracto_color">, <#include "abstracto_color">,
"description": "<@safe_include "too_recent_referral_post"/>", "description": "<@safe_include "too_recent_referral_post"/>",
"timeStamp": "${nextReferralDate}" "timeStamp": "${nextReferralDate}"
} }
]
}

View File

@@ -1,3 +1,6 @@
{
"additionalMessage": "${definition.definition?json_string}",
"embeds": [
{ {
<#include "abstracto_color">, <#include "abstracto_color">,
"fields": [ "fields": [
@@ -12,9 +15,10 @@
"valueLengthLimit": 250, "valueLengthLimit": 250,
"inline": "true" "inline": "true"
} }
]
}
], ],
"additionalMessage": "${definition.definition?json_string}", "messageConfig": {
"metaConfig": {
"messageLimit": 1, "messageLimit": 1,
"additionalMessageLengthLimit": 250 "additionalMessageLengthLimit": 250
} }

View File

@@ -1 +1 @@
The channel in which warn threshold notifications should be sent to. Default: ${defaultValue} The channel in which warn threshold notifications should be sent to. Default: ${currentTarget}