[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,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "warning_threshold_reached_notification_title"/>" "title": "<@safe_include "warning_threshold_reached_notification_title"/>"
}, },
@@ -10,4 +12,6 @@
<#assign channelDisplay=channelDisplay> <#assign channelDisplay=channelDisplay>
<#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,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "starboard_post_created_title"/>" "title": "<@safe_include "starboard_post_created_title"/>"
}, },
@@ -38,4 +40,6 @@
</#if> </#if>
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "starboard_post_deleted_title"/>" "title": "<@safe_include "starboard_post_deleted_title"/>"
}, },
@@ -30,4 +32,6 @@
</#if> </#if>
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
"description": " "description": "
<#list uses as usage> <#list uses as usage>
@@ -11,4 +13,6 @@
<@safe_include "FAQUsage_usage_display"/><#sep>, </#list> <@safe_include "FAQUsage_usage_display"/><#sep>, </#list>
<#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>
@@ -18,4 +20,6 @@
,"imageUrl": "${imageURL}" ,"imageUrl": "${imageURL}"
</#if> </#if>
</#if> </#if>
}
]
} }

View File

@@ -1,7 +1,9 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
"description": " "description": "
<@safe_include "listFAQCommands_command_header"/> <@safe_include "listFAQCommands_command_header"/>
<#list commands as command> <#list commands as command>
<#assign command=command> <#assign command=command>
@@ -17,4 +19,6 @@
<#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,4 +1,6 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
<#include "member_author"> <#include "member_author">
<#assign member=postingMember> <#assign member=postingMember>
@@ -14,4 +16,6 @@
<#sep>, <#sep>,
</#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,4 +1,7 @@
{ {
"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}