mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-09-14 10:48:58 +00:00
[AB-281] adapting templates for ban rework
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
<#macro user_detail user>${user.name?json_string}#${user.discriminator} (${user.idLong?c})</#macro>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "no_user_found_exception_text">
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
<#include "user_detail">
|
||||||
<#include "full_member_info">
|
<#include "full_member_info">
|
||||||
<#include "member_author">
|
|
||||||
<@member_author member=bannedUser/>,
|
|
||||||
"title": {
|
"title": {
|
||||||
"title": "<@safe_include "ban_log_title"/>"
|
"title": "<@safe_include "ban_log_title"/>"
|
||||||
},
|
},
|
||||||
@@ -9,15 +8,15 @@
|
|||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
|
"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"/>",
|
"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"/>",
|
"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"/>",
|
"name": "<@safe_include "ban_log_reason_field_title"/>",
|
||||||
|
|||||||
@@ -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}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -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/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
No user found.
|
||||||
@@ -1 +1 @@
|
|||||||
Banned user
|
Unbanned user
|
||||||
@@ -1 +0,0 @@
|
|||||||
Bans the user with the given reason
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
`banId 1234 bad` in order to ban the user with ID `1234` with the reason `bad`
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
Bans the user by ID. This is necessary, if the user already left the server for example.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
The reason which should be used for the ban.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
The id of the user to ban.
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Un-bans users via ID
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The ID of the user to unban.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
User has been unbanned
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Unbanned user
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Un banning user
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Report reactions
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The amount of seconds a report will not be re-created, but the report count incremented. Default: ${defaultValue}
|
||||||
@@ -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}
|
||||||
@@ -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}
|
||||||
@@ -1 +1 @@
|
|||||||
The channel in which kicks should be logged to. Currently: ${currentTarget}
|
The channel to which kicks should be logged to. Currently: ${currentTarget}
|
||||||
@@ -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}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The channel to which report reactions notifications should be posted to. Currently: ${currentTarget}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The channel to which un-bans should be logged to. Currently: ${currentTarget}
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Number of reports
|
||||||
Reference in New Issue
Block a user