mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-30 15:11:40 +00:00
[AB-298] adapting various templates to comply with the new information in modmail
adding new templates for contact contact notification and modmail logging progress indicator
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{
|
||||
<#assign messagesLogged=loggedMessages>
|
||||
<#assign messagesToLog=totalMessages>
|
||||
"additionalMessage": "<@safe_include "modmail_closing_progress_description"/>"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=targetMember/>,
|
||||
"description": "<@safe_include "modmail_thread_created_description"/>",
|
||||
<#include "modmail_color">,
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "modmail_thread_created_link_field_title"/>",
|
||||
"value": "${createdChannel.asMention}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4,6 +4,9 @@
|
||||
"title": {
|
||||
"title": "<@safe_include "modmail_notification_message_title"/>"
|
||||
},
|
||||
"metaConfig": {
|
||||
"allowsRoleMention": true
|
||||
},
|
||||
<#include "modmail_color">,
|
||||
<#assign user><@member_user_name member=member/>(${member.user.id})</#assign>
|
||||
"description": "<@safe_include "modmail_notification_message_description"/>",
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
</#if>
|
||||
<#if subscribers?size gt 0>
|
||||
<#if postedMessage.contentRaw?has_content || postedMessage.attachments?size gt 0>,</#if>
|
||||
"additionalMessage": "<#list subscribers as subscriber>${subscriber.member.asMention?json_string}<#sep>,</#list>"
|
||||
"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>"
|
||||
</#if>
|
||||
}
|
||||
@@ -1,11 +1,14 @@
|
||||
{
|
||||
<#include "user_detail">
|
||||
"title": {
|
||||
"title": "<@safe_include "modmail_closing_notification_title"/>"
|
||||
},
|
||||
<#include "modmail_color">,
|
||||
<#assign messageCount>${closedThread.messages?size}</#assign>
|
||||
<#assign user>user</#assign>
|
||||
<#assign startDate>${formatDate(closedThread.created,"yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
<#assign messageCount>${messageCount}</#assign>
|
||||
<#assign user><#if user??><@user_detail user=user/><#else>${userId}</#if></#assign>
|
||||
<#assign closingUserDescription><@member_user_name member=closingMember/> (${closingMember.idLong?c})</#assign>
|
||||
<#assign startDate>${formatDate(startDate,"yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
<#assign duration>${fmtDuration(duration)}</#assign>
|
||||
<#assign closedSilently=silently>
|
||||
"description": "<@safe_include "close_closing_description"/>"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=author/>,
|
||||
<#include "user_author">
|
||||
<@user_author user=author/>,
|
||||
<#include "modmail_color">
|
||||
<#if message.embeds[0].description?has_content>
|
||||
,"description": "${message.embeds[0].description?json_string}"
|
||||
|
||||
Reference in New Issue
Block a user