mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-06 09:20:13 +00:00
[AB-xxx] refactoring the modmail to use users instead of members
adding modmailAppeal templates
This commit is contained in:
@@ -1 +1,2 @@
|
||||
<#macro user_author user> "author": { "name": <#include "user_user_name"> "<@user_user_name user=user/>", "avatar": "${user.effectiveAvatarUrl}" }</#macro>
|
||||
<#macro user_detail_author user> "author": { "name": <#include "user_user_name"> "<@user_user_name user=userDisplay/>"<#if user.avatarUrl?has_content>, "avatar": "${user.avatarUrl}"</#if>}</#macro>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "denyModmailAppeal_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,12 @@
|
||||
<#include "user_detail">
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
"title": {
|
||||
"title": "<@safe_include "modmail_notification_message_title"/>"
|
||||
},
|
||||
<#include "modmail_color">,
|
||||
<#assign user><@member_user_name member=member/>(${member.user.id})</#assign>
|
||||
<#assign user><@user_detail user=userDisplay/></#assign>
|
||||
"description": "<@safe_include "modmail_notification_message_description"/>"
|
||||
<#if channel?has_content>,
|
||||
"fields": [
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "user_author">
|
||||
<@user_detail_author user=userDisplay/>,
|
||||
"title": {
|
||||
"title": "<@safe_include "modmail_thread_user_message_title"/>"
|
||||
},
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
<#include "format_instant">
|
||||
<#include "user_detail">
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "modmail_color">,
|
||||
<#assign user><@member_user_name member=member/> (${member.user.id})</#assign>
|
||||
<#assign joinDate><@format_instant_date_time instant=memberJoinDate/></#assign>
|
||||
<#assign roles><#list member.roles as role>${role.asMention?json_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign>
|
||||
<#assign user><@user_detail user=userDisplay/> (${userDisplay.id?c})</#assign>
|
||||
"description": "<@safe_include "modmail_thread_header_embed_description"/>"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user