mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-27 14:23:53 +00:00
[AB-52] help infractions command templates
adding templates for infraction updating templates for reaction reports creating templates for message report context menu fixing show effects command for no effects configured reworking muting embed templates adding templates for edit infractions
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
"description": "
|
||||
<#list effects as effect>
|
||||
`${effect}` <@safe_include "effect_type_${effect}_description"/>
|
||||
<#else><#include "showEffects_response_no_effects">
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "editInfraction_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#assign exitOnly=innerModel.entries?size lt 5/>
|
||||
"embedConfigs": [
|
||||
<#assign chunks=innerModel.entries?chunk(4)>
|
||||
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "infractions_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<#include "format_instant">
|
||||
<#assign decayed=infraction.decayed/>
|
||||
<#assign infractionId=infraction.infractionId/>
|
||||
<#assign type=infraction.type/>
|
||||
<#assign reason=infraction.reason/>
|
||||
<#assign infractionUserText><#if infraction.infractionUser.memberMention??>${infraction.infractionUser.memberMention}(${infraction.infractionUser.userId?c})<#else>${infraction.infractionUser.userId?c}</#if></#assign>
|
||||
<#assign infractionCreatorUserText><#if infraction.infractionCreationUser.memberMention??>${infraction.infractionCreationUser.memberMention}(${infraction.infractionCreationUser.userId?c})<#else>${infraction.infractionCreationUser.userId?c}</#if></#assign>
|
||||
<#assign infractionDate><@format_instant_date_time instant=infraction.creationDate/></#assign>
|
||||
<#assign parameterText><#list infraction.parameters?keys as key><@safe_include "infraction_parameter_${type}_${key}_label"/>: ${infraction.parameters[key]}</#list></#assign>
|
||||
<#include "infractions_infraction_entry_text">
|
||||
|
||||
<#if decayed>
|
||||
<#assign decayDate><@format_instant_date_time instant=infraction.decayDate/></#assign>
|
||||
<#include "infractions_infraction_is_decayed">
|
||||
</#if>
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "moderation_action_color">,
|
||||
"description": "<@safe_include "infractions_no_infractions_found_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#list row as infraction><#assign infraction=infraction><@safe_include "infractions_infraction_entry"/>\n</#list>"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
<#include "paginator_buttons">
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,14 @@
|
||||
{
|
||||
<@member_author member=mutedUser/>,
|
||||
"title": {
|
||||
"title": "<@safe_include "mute_log_title"/>"
|
||||
<#if durationChanged>
|
||||
"title": "<@safe_include "mute_log_title_mute_changed"/>"
|
||||
<#elseif muteEnded>
|
||||
"title": "<@safe_include "mute_log_title_unmuted"/>"
|
||||
<#elseif muted>
|
||||
"title": "<@safe_include "mute_log_title_muted"/>"
|
||||
</#if>
|
||||
|
||||
},
|
||||
<#include "moderation_action_color">,
|
||||
"fields": [
|
||||
@@ -14,20 +21,23 @@
|
||||
"name": "<@safe_include "mute_log_muted_user_field_title"/>",
|
||||
"value": "<@full_member_info member=mutedUser/>"
|
||||
},
|
||||
<#if mutingUser?has_content>
|
||||
{
|
||||
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
|
||||
<#if muted>
|
||||
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
|
||||
<#elseif muteEnded>
|
||||
"name": "<@safe_include "mute_log_unmuting_user_field_title"/>",
|
||||
</#if>
|
||||
"value": "<@full_member_info member=mutingUser/>"
|
||||
},
|
||||
<#if message?has_content>
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
|
||||
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
}
|
||||
</#if>
|
||||
<#if reason?has_content>,
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
|
||||
"value": "${reason?json_string}"
|
||||
},
|
||||
}
|
||||
</#if>
|
||||
<#if muted && !durationChanged>,
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
|
||||
"value": "${fmtDuration(muteDuration)}"
|
||||
@@ -36,11 +46,18 @@
|
||||
"name": "<@safe_include "mute_log_muted_until_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=muteTargetDate/>"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<@safe_include "mute_log_mute_id_footer"/>"
|
||||
},
|
||||
"timeStamp": "${muteDate}"
|
||||
</#if>
|
||||
<#if durationChanged>,
|
||||
{
|
||||
"name": "<@safe_include "mute_log_new_mute_time_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=muteTargetDate/>"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_old_mute_time_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=oldMuteTargetDate/>"
|
||||
}
|
||||
</#if>
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
<#include "full_member_info">
|
||||
<#include "format_instant">
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#if unMutedUser?has_content>
|
||||
<#include "member_author">
|
||||
<@member_author member=unMutedUser/>,
|
||||
</#if>
|
||||
"title": {
|
||||
"title": "<@safe_include "unMute_log_title"/>"
|
||||
},
|
||||
<#include "moderation_action_color">,
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "unMute_log_unmuted_user_field_title"/>",
|
||||
<#if unMutedUser?has_content>
|
||||
"value": "<@full_member_info member=unMutedUser/>"
|
||||
<#else>
|
||||
"value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
|
||||
<#if mutingUser?has_content>
|
||||
"value": "<@full_member_info member=mutingUser/>"
|
||||
<#else>
|
||||
"value": "<@safe_include "user_left_server"/> (${mute.mutingUser.userReference.id?c})"
|
||||
</#if>
|
||||
},
|
||||
<#if messageUrl??>
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
|
||||
"value": "[Link](${messageUrl})"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "unMute_log_muted_since_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=mute.muteDate/>"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
|
||||
"value": "${fmtDuration(muteDuration)}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
|
||||
"value": "${mute.reason?json_string}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
<#assign muteId=mute.muteId.id/>
|
||||
"text": "<@safe_include "mute_log_mute_id_footer"/>"
|
||||
},
|
||||
"timeStamp": "${unmuteDate}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<#include "mute_role_has_not_been_setup_exception_text">
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "reactionReport_cooldown_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": "${modalId}",
|
||||
"title": "<@safe_include "reactionReport_modal_title"/>",
|
||||
"textInputs": [
|
||||
{
|
||||
"placeHolder": "<@safe_include "reactionReport_modal_context_placeholder"/>",
|
||||
"id": "${inputComponentId}",
|
||||
"position": 1,
|
||||
"label": "<@safe_include "reactionReport_modal_context_label"/>",
|
||||
"style": "paragraph",
|
||||
"maxLength": 2000,
|
||||
"required": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,13 +3,35 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign messageLink=reportedMessage.messageUrl>
|
||||
"description" : "<@safe_include "reactionReport_notification_embed_description"/>",
|
||||
"fields": [
|
||||
<#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"/>"
|
||||
<#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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "reactionReport_own_message_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "reactionReport_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
No effects
|
||||
@@ -0,0 +1 @@
|
||||
Embed message
|
||||
@@ -0,0 +1 @@
|
||||
Infraction text has been updated.
|
||||
@@ -0,0 +1 @@
|
||||
Enables you to edit the reason for warnings/bans/kicks etc.
|
||||
@@ -0,0 +1,3 @@
|
||||
This command can be used to edit the reason for warnings, bans, kicks after the fact.
|
||||
These reasons are only the reasons for the bot, and will not update the reason in Discord (e.g. the ban list).
|
||||
This command only works if the `infractions` feature was enabled when the warning etc was created.
|
||||
@@ -0,0 +1 @@
|
||||
The ID of the infraction to edit
|
||||
@@ -0,0 +1 @@
|
||||
The new reason for the infraction
|
||||
@@ -0,0 +1 @@
|
||||
Shows all in fractions of a member or the whole server
|
||||
@@ -0,0 +1,2 @@
|
||||
Lists the infractions of the whole server or of one particular user in a paginated form.
|
||||
Shows the date, who created it, the type and whether nor the infraction is still active.
|
||||
@@ -0,0 +1 @@
|
||||
The member to show the infraction for
|
||||
@@ -0,0 +1,2 @@
|
||||
Infraction #${infractionId} with type `${type}` towards user ${infractionUserText} by user ${infractionCreatorUserText} on ${infractionDate}. It is **${decayed?then('decayed', 'active')}**. The reason was: `${reason}`.
|
||||
${parameterText}
|
||||
@@ -0,0 +1 @@
|
||||
This infraction was decayed on ${decayDate}.
|
||||
@@ -0,0 +1 @@
|
||||
No infractions found.
|
||||
@@ -1 +0,0 @@
|
||||
Mute #${muteId}
|
||||
@@ -1 +0,0 @@
|
||||
Mute location
|
||||
@@ -1 +1 @@
|
||||
Muted user
|
||||
User
|
||||
@@ -0,0 +1 @@
|
||||
New mute date
|
||||
@@ -0,0 +1 @@
|
||||
Old mute date
|
||||
@@ -0,0 +1 @@
|
||||
User mute has been changed
|
||||
@@ -0,0 +1 @@
|
||||
Unmuted by
|
||||
@@ -1 +0,0 @@
|
||||
Muted since
|
||||
@@ -1 +0,0 @@
|
||||
Unmuted user
|
||||
@@ -1 +1 @@
|
||||
Shows all the warnings on the server
|
||||
Shows all the mutes on the server
|
||||
@@ -1 +0,0 @@
|
||||
Used to configure the mute role on this server.
|
||||
@@ -1,2 +0,0 @@
|
||||
Sets the used mute role on the server. If there are previously roles assigned, this will be overwritten.
|
||||
The configuration to make the role muting, needs to be done by you.
|
||||
@@ -1 +0,0 @@
|
||||
The role which should be used to mute user.
|
||||
@@ -1 +1 @@
|
||||
Member has been un-muted.
|
||||
Member has been unmuted.
|
||||
@@ -0,0 +1 @@
|
||||
The amount of infraction points for a ban. Default: ${defaultValue}
|
||||
@@ -0,0 +1 @@
|
||||
The amount of infraction points for a kick. Default: ${defaultValue}
|
||||
@@ -0,0 +1 @@
|
||||
The amount of infraction points for a mute. Default: ${defaultValue}
|
||||
@@ -0,0 +1 @@
|
||||
The amount of infraction points for a warning. Default: ${defaultValue}
|
||||
@@ -0,0 +1 @@
|
||||
Deletion days
|
||||
@@ -0,0 +1 @@
|
||||
Duration
|
||||
@@ -1 +0,0 @@
|
||||
Mute role has not been setup for server.
|
||||
@@ -0,0 +1 @@
|
||||
Additional context
|
||||
@@ -0,0 +1 @@
|
||||
Please wait a bit between reporting.
|
||||
@@ -0,0 +1 @@
|
||||
Go to message
|
||||
@@ -0,0 +1 @@
|
||||
Additional context
|
||||
@@ -0,0 +1 @@
|
||||
It is...
|
||||
@@ -0,0 +1 @@
|
||||
Report message
|
||||
@@ -0,0 +1 @@
|
||||
No content
|
||||
@@ -1 +1,3 @@
|
||||
[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.
|
||||
A message by ${userMention} has been reported.
|
||||
Message content: ${messageContent}
|
||||
<#if singularMessage>There might be multiple reports. The counter below will contain the amount of reports concerning this user in recent time.</#if>
|
||||
@@ -0,0 +1 @@
|
||||
You cannot report yourself.
|
||||
@@ -0,0 +1 @@
|
||||
Message has been reported.
|
||||
@@ -0,0 +1 @@
|
||||
Report
|
||||
@@ -0,0 +1 @@
|
||||
Report with context
|
||||
Reference in New Issue
Block a user