[SIS-5] enabling and customizing moderation

This commit is contained in:
Sheldan
2022-06-25 14:00:38 +02:00
parent 0ec7d83191
commit d74c10c618
57 changed files with 2298 additions and 49 deletions

View File

@@ -0,0 +1,15 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>zip</id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<outputDirectory>.</outputDirectory>
<directory>${project.basedir}/src/main/resources</directory>
</fileSet>
</fileSets>
</assembly>

View File

@@ -0,0 +1,40 @@
{
"embeds": [
{
<#include "abstracto_color">,
<#assign messageLink=reportedMessage.messageUrl>
<#assign userMention>${reportedMessage.author.asMention}</#assign>
<#assign messageContent><#if reportedMessage.content?has_content>`${reportedMessage.content?json_string}`<#else><@safe_include "reactionReport_no_content"/></#if></#assign>
"description" : "<#if context?has_content><@safe_include "reactionReport_additional_context_label"/>: `${context?json_string}`</#if>
<@safe_include "reactionReport_notification_embed_description"/>",
"footer": {
"text": "<@safe_include "reaction_report_custom_text"/>"
}
<#if reportedMessage.attachments?size gt 0>
,"imageUrl": "${reportedMessage.attachments[0].proxyUrl}"
<#elseif reportedMessage.attachments?size = 0 && reportedMessage.embeds?size gt 0 && reportedMessage.embeds[0].cachedThumbnail??>
,"imageUrl": "${message.embeds[0].cachedThumbnail.proxyUrl}"
<#elseif reportedMessage.attachments?size = 0 && reportedMessage.embeds?size gt 0 && reportedMessage.embeds[0].cachedImageInfo??>
,"imageUrl": "${reportedMessage.embeds[0].cachedImageInfo.proxyUrl}"
</#if>
<#if singularMessage>,
,"fields": [
{
"name": "<@safe_include "reactionReport_notification_embed_report_counter_field_title"/>",
"value": "${reportCount}"
}
]
</#if>
}
],
"buttons": [
{
"label": "<@safe_include "reactionReport_jump_button_label"/>",
"url": "${messageLink?json_string}",
"buttonStyle": "link",
"metaConfig": {
"persistCallback": false
}
}
]
}