[AB-281] adapting templates for ban rework

This commit is contained in:
Sheldan
2021-06-01 21:10:44 +02:00
parent 14bfbaae80
commit c6d6fb1c8f
31 changed files with 97 additions and 40 deletions

View File

@@ -0,0 +1 @@
<#macro user_detail user>${user.name?json_string}#${user.discriminator} (${user.idLong?c})</#macro>

View File

@@ -0,0 +1 @@
<#include "no_user_found_exception_text">

View File

@@ -1,7 +1,6 @@
{
<#include "user_detail">
<#include "full_member_info">
<#include "member_author">
<@member_author member=bannedUser/>,
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
@@ -9,15 +8,15 @@
"fields": [
{
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
"value": "<@full_member_info member=bannedUser/>"
"value": "<@user_detail user=bannedUser/>"
},
{
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
"value": "<@full_member_info member=banningUser/>"
"value": "<@full_member_info member=banningMember/>"
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
"value": "[${messageChannel.name?json_string}](${message.jumpUrl})"
"value": "[${commandMessage.channel.name?json_string}](${commandMessage.jumpUrl})"
},
{
"name": "<@safe_include "ban_log_reason_field_title"/>",

View File

@@ -1,25 +0,0 @@
{
<#include "full_member_info">
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
"value": "${bannedUserId?c}"
},
{
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
"value": "<@full_member_info member=banningUser/>"
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
"value": "[${messageChannel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?json_string}"
}
]
}

View File

@@ -0,0 +1,18 @@
{
<#include "user_detail">
<#include "full_member_info">
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "unBan_log_un_banned_user_field_title"/>",
"value": "<@user_detail user=bannedUser/>"
},
{
"name": "<@safe_include "unBan_log_un_banning_user_field_title"/>",
"value": "<@full_member_info member=unBanningMember/>"
}
]
}

View File

@@ -0,0 +1,11 @@
{
<#include "abstracto_color">,
<#assign messageLink=reportedMessage.messageUrl>
"description" : "<@safe_include "reactionReport_notification_embed_description"/>",
"fields": [
{
"name": "<@safe_include "reactionReport_notification_embed_report_counter_field_title"/>",
"value": "${reportCount}"
}
]
}

View File

@@ -0,0 +1,25 @@
{
<#include "user_detail">
<#include "abstracto_color">,
"description" : "User was banned.",
"fields": [
{
"name": "Banned user",
"value": ""<@user_detail user=unBannedUser/>"
}
<#if banningUser??>
,
{
"name": "Banning user",
"value": "<@user_detail user=banningUser/>"
}
</#if>
<#if reason??>
,
{
"name": "reason",
"value": "${reason}"
}
</#if>
]
}

View File

@@ -0,0 +1,18 @@
{
<#include "user_detail">
<#include "abstracto_color">,
"description" : "User was un-banned.",
"fields": [
{
"name": "Un-Banned user",
"value": "<@user_detail user=unBannedUser/>"
}
<#if unBanningUser??>
,
{
"name": "Un-banning user",
"value": "<@user_detail user=unBanningUser/>"
}
</#if>
]
}

View File

@@ -1 +0,0 @@
Bans the user with the given reason

View File

@@ -1 +0,0 @@
`banId 1234 bad` in order to ban the user with ID `1234` with the reason `bad`

View File

@@ -1 +0,0 @@
Bans the user by ID. This is necessary, if the user already left the server for example.

View File

@@ -1 +0,0 @@
The reason which should be used for the ban.

View File

@@ -0,0 +1,2 @@
This command can be used to un-ban users via ID. If they are not banned currently, an error message is displayed.
The un-ban is logged.

View File

@@ -0,0 +1 @@
The ID of the user to unban.

View File

@@ -0,0 +1 @@
User has been unbanned

View File

@@ -0,0 +1 @@
The amount of seconds a report will not be re-created, but the report count incremented. Default: ${defaultValue}

View File

@@ -1 +1 @@
The channel in which where bans should be logged to. Currently: ${currentTarget}
The channel to which bans should be logged to. Currently: ${currentTarget}

View File

@@ -1 +1 @@
The channel in which decayed warnings should be logged to. Currently: ${currentTarget}
The channel to which decayed warnings should be logged to. Currently: ${currentTarget}

View File

@@ -1 +1 @@
The channel in which kicks should be logged to. Currently: ${currentTarget}
The channel to which kicks should be logged to. Currently: ${currentTarget}

View File

@@ -1 +1 @@
The channel where mutes should be logged to. Un-mutes will also be in this channel. Currently: ${currentTarget}
The channel to which mutes should be logged to. Un-mutes will also be in this channel. Currently: ${currentTarget}

View File

@@ -0,0 +1 @@
The channel to which report reactions notifications should be posted to. Currently: ${currentTarget}

View File

@@ -0,0 +1 @@
The channel to which un-bans should be logged to. Currently: ${currentTarget}

View File

@@ -0,0 +1 @@
[Message](${messageLink}) has been reported. There might be multiple reports. The counter below will contain the amount of reports concerning this user in recent time.