mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-14 19:56:29 +00:00
added anonymous message handling to modmail
This commit is contained in:
@@ -7,10 +7,15 @@
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "${message.embeds[0].description}"
|
||||
}
|
||||
<#if message.embeds[0].description?has_content>
|
||||
,"description": "${message.embeds[0].description}"
|
||||
</#if>
|
||||
<#if message.attachments?size gt 0>
|
||||
,"imageUrl": "${message.embeds[0].image.proxyUrl}"
|
||||
</#if>,
|
||||
"timeStamp": "${message.timeCreated}"
|
||||
</#if>
|
||||
<#if modMailMessage.anonymous>
|
||||
, "additionalMessage": "<#include "modmail_anonymous_message_note">"
|
||||
</#if>
|
||||
,"timeStamp": "${message.timeCreated}"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${threadUser.member.effectiveName}",
|
||||
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
|
||||
"name": "${moderator.effectiveName}",
|
||||
"avatar": "${moderator.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "modmail_thread_staff_message_title">"
|
||||
@@ -10,9 +10,9 @@
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
}
|
||||
<#if text?has_content>
|
||||
"description": "${text}"
|
||||
, "description": "${text}"
|
||||
</#if>
|
||||
<#if postedMessage.attachments?size gt 0>
|
||||
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
|
||||
|
||||
Reference in New Issue
Block a user