mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-15 04:02:54 +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_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": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
<#include "member_author">
|
|
||||||
<@member_author member=member/>,
|
|
||||||
"title": {
|
"title": {
|
||||||
"title": "<@safe_include "modmail_notification_message_title"/>"
|
"title": "<@safe_include "modmail_notification_message_title"/>"
|
||||||
},
|
},
|
||||||
<#include "modmail_color">,
|
<#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"/>"
|
"description": "<@safe_include "modmail_notification_message_description"/>"
|
||||||
<#if channel?has_content>,
|
<#if channel?has_content>,
|
||||||
"fields": [
|
"fields": [
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"embeds": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
<#include "member_author">
|
<#include "user_author">
|
||||||
<@member_author member=member/>,
|
<@user_detail_author user=userDisplay/>,
|
||||||
"title": {
|
"title": {
|
||||||
"title": "<@safe_include "modmail_thread_user_message_title"/>"
|
"title": "<@safe_include "modmail_thread_user_message_title"/>"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
<#include "format_instant">
|
<#include "format_instant">
|
||||||
|
<#include "user_detail">
|
||||||
{
|
{
|
||||||
"embeds": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
<#include "member_author">
|
|
||||||
<@member_author member=member/>,
|
|
||||||
<#include "modmail_color">,
|
<#include "modmail_color">,
|
||||||
<#assign user><@member_user_name member=member/> (${member.user.id})</#assign>
|
<#assign user><@user_detail user=userDisplay/> (${userDisplay.id?c})</#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>
|
|
||||||
"description": "<@safe_include "modmail_thread_header_embed_description"/>"
|
"description": "<@safe_include "modmail_thread_header_embed_description"/>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
User has been banned from the appeal server.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Reject an modmail appeal
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Rejects the appeal, closes the modmail thread and bans the user from the appeal server.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The reason to reject this appeal. Will not be forwarded to the user.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The server to use as an appeal server. Default: ${defaultValue}
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
This is a modmail thread concerning ${user}.
|
This is a modmail thread concerning ${user}.
|
||||||
The user has the roles ${roles} and joined on ${joinDate}
|
|
||||||
There were ${pastModMailThreadCount} threads in the past.
|
There were ${pastModMailThreadCount} threads in the past.
|
||||||
Reference in New Issue
Block a user