Compare commits

..

101 Commits

Author SHA1 Message Date
Sheldan
ad6ad7dc8b [maven-release-plugin] prepare release templates-1.3.0 2021-12-24 13:50:02 +01:00
OneNormalUsername
bb47784554 Display in bold whether a warning is active or decayed (#10)
Co-Authored-By: Sheldan <5037282+Sheldan@users.noreply.github.com>
2021-12-23 15:48:33 +01:00
Sheldan
921a5259ee [AB-349] refactoring templates to have the new multi embed structure 2021-12-08 16:32:41 +01:00
Sheldan
c52dbbb1f3 [AB-338] fixing messages without content not properly handled by modmail
fixing mutes and warnings paginator template
2021-12-02 00:03:22 +01:00
Sheldan
02d5d7cc1c [AB-291] adding templates for new pagination system
adding templates for mutes command
2021-12-01 01:13:44 +01:00
Sheldan
4c988e6c3e [AB-307] refactoring templates for enable and disable feature
adding additional enabled/disabled dependent features to the output of the respective commands
2021-11-28 13:22:08 +01:00
Sheldan
134e2e0360 [AB-343] changing suggestion notification to contain a link button instead of having the link within the text 2021-11-23 19:58:59 +01:00
Sheldan
d5e95babba [AB-170] adding emote stat command for single emote 2021-10-27 00:26:04 +02:00
Sheldan
5f5a7a4fb5 [AB-340] adding timestamp support for serverInfo command 2021-10-26 13:53:34 +02:00
Sheldan
ade134fdaa [maven-release-plugin] prepare for next development iteration 2021-10-25 23:07:05 +02:00
Sheldan
a7f3a902f9 [maven-release-plugin] prepare release templates-1.2.21 2021-10-25 23:06:58 +02:00
Sheldan
ad5dfaefed [AB-339] adjusting templates for softBan to banDelete change 2021-10-25 01:22:29 +02:00
Sheldan
479c100220 [AB-167] adding templates for infraction tracking and post target disabling
adding some missing templates
adding post target disabled state to post target output
2021-10-25 00:06:09 +02:00
Sheldan
cc584d711c [AB-333] refactoring templates to use Discord time stamp formatting 2021-10-14 01:33:29 +02:00
Sheldan
ecb8824614 [AB-334] adding suggestion vote result to suggestion reminder templates 2021-10-13 18:01:39 +02:00
Sheldan
61f3910878 [AB-331] adding templates for the separate vote decision 2021-09-28 22:20:54 +02:00
Sheldan
e53d75dcc8 [AB-332] adding templates for "no warnings" message 2021-09-28 22:04:02 +02:00
Sheldan
93b0bf33ca [AB-196] adding templates for command confirmations 2021-09-27 00:24:42 +02:00
Sheldan
a4aa0ddb6c [AB-319] splitting emotes into two separate fields (animated and static) for server info 2021-09-10 00:41:53 +02:00
Sheldan
8420b32233 [AB-297] adding guild names to invite filter notification (if available) 2021-09-08 23:05:28 +02:00
Sheldan
e19d2f777d [maven-release-plugin] prepare for next development iteration 2021-09-06 01:46:21 +02:00
Sheldan
3f80fabf69 [maven-release-plugin] prepare release templates-1.2.20 2021-09-06 01:46:17 +02:00
Sheldan
a14b6f4d67 [AB-268] adding templates for suggestion button features 2021-09-06 01:43:05 +02:00
Sheldan
19135a7312 [AB-xxx] updating docs response 2021-09-05 20:41:47 +02:00
Sheldan
3f8a0c81db [AB-318] adding reference to original message to embedded message 2021-09-04 16:35:32 +02:00
Sheldan
bace0facee [AB-xxx] fixing profanity report json safety 2021-08-21 16:07:05 +02:00
Sheldan
1d518337c4 [maven-release-plugin] prepare for next development iteration 2021-08-09 23:45:52 +02:00
Sheldan
c00852f2cb [maven-release-plugin] prepare release templates-1.2.19 2021-08-09 23:45:45 +02:00
Sheldan
4e11c09112 [AB-xxx] fixing closing notification message 2021-08-09 23:41:25 +02:00
Sheldan
e6d0688d45 [maven-release-plugin] prepare for next development iteration 2021-07-25 20:23:29 +02:00
Sheldan
772e63684b [maven-release-plugin] prepare release templates-1.2.18 2021-07-25 20:23:19 +02:00
Sheldan
ea43c7b503 [AB-xxx] fixing template for booster assignable role exception 2021-07-22 01:10:26 +02:00
Sheldan
9908d69432 [maven-release-plugin] prepare for next development iteration 2021-07-21 23:27:33 +02:00
Sheldan
3c2dab9ade [maven-release-plugin] prepare release templates-1.2.17 2021-07-21 23:27:25 +02:00
Sheldan
f7d357968a [AB-300] adding template for modmamil channel names 2021-07-21 01:38:31 +02:00
Sheldan
460fb45ca2 [AB-311] adding softban related templates 2021-07-20 02:01:59 +02:00
Sheldan
3682ca980e [AB-308] adding templates required for booster assignable role places 2021-07-18 18:54:20 +02:00
Sheldan
9d6074e25c [maven-release-plugin] prepare for next development iteration 2021-07-14 02:12:26 +02:00
Sheldan
9751e1d09c [maven-release-plugin] prepare release templates-1.2.16 2021-07-14 02:12:16 +02:00
Sheldan
8632a4cf79 [AB-71] adding templates for anti raid module
changing button style in assignable role place to secondary for better contrast
2021-07-14 01:50:16 +02:00
Sheldan
9db7d654d3 [maven-release-plugin] prepare for next development iteration 2021-07-13 00:51:37 +02:00
Sheldan
fc1818ee9b [maven-release-plugin] prepare release templates-1.2.15 2021-07-13 00:51:29 +02:00
Sheldan
1667755310 [AB-64] adding missing maven assembly configuration 2021-07-13 00:35:59 +02:00
OneNormalUsername
04e6854ba5 Improve wording of voice channel context templates (#9) 2021-07-12 01:16:03 +02:00
Sheldan
e0fa208623 [AB-64] adding exception templates for voice channel context feature 2021-07-12 00:55:01 +02:00
Sheldan
7e91083b3a [AB-64] adding templates for voice channel context feature 2021-07-12 00:44:07 +02:00
Sheldan
d09fc1dd54 [AB-302] removing of templates of removed commands and exceptions
adapting some templates for new functionality
2021-07-11 19:10:33 +02:00
OneNormalUsername
bf0aa3baad Various improvements to templates (#8)
- Removes `;closenolog` templates, as the feature doesn't exist anymore
- Fix some inconsistencies and typos

Co-Authored-By: Sheldan <5037282+Sheldan@users.noreply.github.com>

Co-authored-by: Sheldan <5037282+Sheldan@users.noreply.github.com>
2021-07-11 15:02:51 +02:00
OneNormalUsername
ab575257f9 Make note and username bold in modmail log embed (#7)
Reimplementation of b3e4bd6431

Co-Authored-By: Sheldan <5037282+Sheldan@users.noreply.github.com>

Co-authored-by: Sheldan <5037282+Sheldan@users.noreply.github.com>
2021-07-07 22:17:47 +02:00
Sheldan
57b64d80d0 [maven-release-plugin] prepare for next development iteration 2021-07-04 13:29:28 +02:00
Sheldan
029b34a65e [maven-release-plugin] prepare release templates-1.2.14 2021-07-04 13:29:21 +02:00
Sheldan
d83310e029 [AB-299] fixing templates for ban notification 2021-07-04 13:01:21 +02:00
OneNormalUsername
acd69bf522 mod mail -> modmail (#6) 2021-07-04 12:57:14 +02:00
Sheldan
dde3ec778d [AB-298] adapting various templates to comply with the new information in modmail
adding new templates for contact contact notification and modmail logging progress indicator
2021-07-04 12:12:31 +02:00
Sheldan
ee2d1658be [AB-296] adding templates for interaction based exceptions
adding button to message embed for deletion
adding exception for remove embedded message exception
2021-07-03 10:42:07 +02:00
Sheldan
ea36bb5015 [AB-271] adding templates for exception 2021-06-27 17:07:51 +02:00
Sheldan
d343753bbe [maven-release-plugin] prepare for next development iteration 2021-06-27 00:33:53 +02:00
Sheldan
d2fa000624 [maven-release-plugin] prepare release templates-1.2.13 2021-06-27 00:33:46 +02:00
OneNormalUsername
1b0dcf5aff Remove dashes in unban related templates (#5)
* Remove dashes in unban related templates
2021-06-26 22:44:57 +02:00
Sheldan
e9b15bf32d [AB-xxx] consistent naming for un-banning 2021-06-26 22:24:06 +02:00
Sheldan
1ae65d2723 [AB-xxx] fixing ban related templates 2021-06-26 22:17:28 +02:00
Sheldan
b8d7ed4139 [AB-287] adapting templates for changed behaviour in case users left the server for warnings display
fixing un mute template not requiring a message url
2021-06-09 12:53:42 +02:00
OneNormalUsername
4433d234be Small improvements to warnings and mutes templates (#4)
- Warning reasons after `;warnings user_id` is run is now displayed in a code block for better readability
- There is now a space before `This warning was decayed on [...]` after running `;warnings user_id`
- Minor wording changes
2021-06-07 19:10:01 +02:00
OneNormalUsername
b2fb63bca9 Fix string in ban log template (#3) 2021-06-05 13:24:31 +02:00
OneNormalUsername
0217e48278 Change "default reason" to "No reason provided" for moderation commands templates (#2) 2021-06-04 17:01:51 +02:00
Sheldan
77c515effc [maven-release-plugin] prepare for next development iteration 2021-06-02 12:42:18 +02:00
Sheldan
0767e3509a [maven-release-plugin] prepare release templates-1.2.12 2021-06-02 12:42:09 +02:00
Sheldan
2e1f6e20b6 [AB-285] adding help templates for moderation commands and fixing my warnings template 2021-06-02 02:29:17 +02:00
Sheldan
e9cff14c28 [maven-release-plugin] prepare for next development iteration 2021-06-02 00:40:00 +02:00
Sheldan
8662bc0be2 [maven-release-plugin] prepare release templates-1.2.11 2021-06-02 00:39:48 +02:00
Sheldan
8252a1752d [AB-284] adding templates for warn decay notification
fixing some templates related to moderation
2021-06-02 00:34:10 +02:00
Sheldan
c6d6fb1c8f [AB-281] adapting templates for ban rework 2021-06-01 21:10:44 +02:00
Sheldan
14bfbaae80 [AB-273] improving display of server features and adding text and voice channel count to server info 2021-05-29 01:20:01 +02:00
Sheldan
60d1c40153 [maven-release-plugin] prepare for next development iteration 2021-05-26 21:44:50 +02:00
Sheldan
39cf84b946 [maven-release-plugin] prepare release templates-1.2.10 2021-05-26 21:44:41 +02:00
Sheldan
7aeea1d12e [AB-272] changing leaderboard & rank template to adapt the changes
adding missing help template
2021-05-26 21:41:51 +02:00
Sheldan
a0ba5092b1 [maven-release-plugin] prepare for next development iteration 2021-05-26 13:50:22 +02:00
Sheldan
ffa93f8bc1 [maven-release-plugin] prepare release templates-1.2.9 2021-05-26 13:50:14 +02:00
Sheldan
9092e83680 [AB-270] adding template for experience gain channel group 2021-05-26 11:30:04 +02:00
Sheldan
f0a9d235c2 [AB-247] adding templates for levelRoles command
adding templates for experience role not found exception
fixing layout for help command detail response with validators
2021-05-26 00:55:04 +02:00
Sheldan
f9a83d7b20 [AB-251] improving leaderboard response embed and adapting rank help template 2021-05-25 00:21:53 +02:00
Sheldan
985a1cfc3f [AB-262] adding templates related to suggestion reminder 2021-05-24 17:39:30 +02:00
Sheldan
8e027fd881 [AB-265] fixing templates for exportEmoteStats help and incorrect feature mode exception template 2021-05-24 13:38:43 +02:00
Sheldan
9e34917549 [maven-release-plugin] prepare for next development iteration 2021-05-23 23:23:34 +02:00
Sheldan
3c6d3ad803 [maven-release-plugin] prepare release templates-1.2.8 2021-05-23 23:23:26 +02:00
Sheldan
a4fa1a32bd [AB-xxx] fixing small issues with emote tracking templates 2021-05-23 22:56:15 +02:00
AnonymousWP
08c96ecf46 Added missing format for weeks (#1)
Adding core template 'duration_format_help'
2021-05-20 19:04:40 +02:00
Sheldan
d7dd4cd39a [AB-84] adding templates for profanity filter 2021-05-16 23:46:32 +02:00
Sheldan
a9267822dc [AB-258] adding templates for urban dictionary exception 2021-05-12 15:39:37 +02:00
Sheldan
4d2294f0b4 [maven-release-plugin] prepare for next development iteration 2021-05-12 00:47:10 +02:00
Sheldan
24138cf72e [maven-release-plugin] prepare release templates-1.2.7 2021-05-12 00:47:01 +02:00
Sheldan
d71871a924 [AB-256] adding timezone to various places 2021-05-12 00:44:04 +02:00
Sheldan
6b6f5bcb10 [AB-240] moving invite filtering to separate module
adding templates for effects rework
changed display of optional parameters in help
2021-05-10 20:57:09 +02:00
Sheldan
3d7db690a5 [AB-253] adding templates for unsuggest 2021-05-04 13:20:53 +02:00
Sheldan
0400637847 [maven-release-plugin] prepare for next development iteration 2021-05-02 23:11:42 +02:00
Sheldan
fe7558ec0d [maven-release-plugin] prepare release templates-1.2.6 2021-05-02 23:11:34 +02:00
Sheldan
d5bd0acbfd [AB-248] adding templates for everyone role rejection 2021-05-02 21:37:47 +02:00
Sheldan
5b238af062 [AB-250] adding templates for no experience tracked exception
slight rewording for experience related help
fixing parameter template name for disableExpGain
2021-05-02 01:27:46 +02:00
Sheldan
efc5a72339 [AB-242] adding templates for suggestion improvements containing veto, unsuggest and splitting suggest message templates
updating help templates
fixing template for deleted users doing a double safe include leading to incorrect json structure
2021-04-30 01:29:15 +02:00
Sheldan
d0cce94d09 [AB-174] adding templates for snooze behaviour
added bell icon to reminder notification
added explicit mention of reminder ID
2021-04-25 14:48:26 +02:00
Sheldan
d94abd975b [maven-release-plugin] prepare for next development iteration 2021-04-24 22:17:48 +02:00
683 changed files with 3088 additions and 1471 deletions

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>anti-raid</artifactId>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>anti-raid-templates-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

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,18 @@
{
"embeds": [
<#include "moderation_action_color">,
<#assign mentionCount=mentionCount/>
<#assign memberMention=memberDisplay.memberMention/>
"description": "<@safe_include "massPing_mute_notification_embed_description"/>",
"fields": [
{
"name": "<@safe_include "massPing_mute_notification_embed_message_content_field_title"/>",
"value": "${messageContent?json_string}"
},
{
"name": "<@safe_include "massPing_mute_notification_embed_message_link_field_title"/>",
"value": "[<@safe_include "massPing_mute_notification_embed_message_link_field_value"/>](${messageLink})"
}
]
]
}

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -0,0 +1,2 @@
<#assign minLevel=model.minLevel>
<#include "assignable_role_condition_display_min_level_message">

View File

@@ -1,10 +1,21 @@
{
<#include "assignable_place_color">,
"description": "<@safe_include "assignable_roles_config_embed_place_description"/>
<@safe_include "assignable_roles_config_embed_role_header"/>:
<#list roles as role><#assign role=role/><#assign rolePosition=role.position/><#assign emoteMention=role.emote.emoteRepr/><#assign roleMention><#if role.awardedRole?has_content>${role.awardedRole.asMention}<#else><#include "assignable_roles_config_embed_deleted_role"></#if></#assign><#assign roleDescription=role.description/>
<@safe_include "assignable_roles_config_embed_emote_description"/>
"embeds": [
{
<#include "assignable_place_color">,
"description": "<#assign channelMention><#if channelDisplay??>${channelDisplay.channelMention}<#else><@safe_include "assignable_roles_config_embed_no_channel_found"/></#if></#assign>
<#assign typeDescription><@safe_include "assignable_role_place_type_description_${type}"/></#assign>
<@safe_include "assignable_roles_config_embed_place_description"/>
</#list>
"
<@safe_include "assignable_roles_config_embed_role_header"/>:
<#list roles as role><#assign role=role/>
<#assign emoteMention><#if role.emoteMarkDown??>${role.emoteMarkDown}<#else>No emote</#if></#assign>
<#assign roleMention=role.roleDisplay.roleMention/>
<#assign roleDescription=role.description/>
<#assign conditionText><#list role.conditions as condition><#assign model=condition.templateModel><@safe_include "${condition.templateName}"/><#sep>, <#else><#include "assignable_role_condition_no_conditions"></#list></#assign>
<@safe_include "assignable_roles_config_embed_role_description"/>
<#else><@safe_include "assignable_role_config_embed_no_roles"/></#list>
"
}
]
}

View File

@@ -1,6 +1,10 @@
{
<#include "assignable_place_color">,
"description": "<@safe_include "assignable_role_places_overview_description"/>:
<#list places as place>`<#assign place=place/><#assign placeKey=place.key/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
"
"embeds": [
{
<#include "assignable_place_color">,
"description": "<@safe_include "assignable_role_places_overview_description"/>:
<#list places as place>`<#assign place=place/><#assign placeKey=place.placeName/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
"
}
]
}

View File

@@ -0,0 +1,3 @@
<#assign minLevel=model.minLevel>
<#assign roleMention=model.roleDisplay.roleMention>
<#include "assignable_role_condition_min_level_message">

View File

@@ -0,0 +1,15 @@
{
"embeds": [
{
<#include "abstracto_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#assign model=templateModel/>
"description": "<@safe_include "${templateName}"/>"
}
],
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,3 @@
<#assign roleMention=model.roleDisplay.roleMention>
<#assign placeName=model.placeName>
<#include "assignable_role_already_defined_exception_message"/>

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,2 @@
<#assign roleId=model.roleId>
<#include "assignable_role_not_found_exception_message">

View File

@@ -0,0 +1,2 @@
<#assign roleMention=model.roleDisplay.roleMention>
<#include "assignable_role_not_usable_exception_message">

View File

@@ -1 +1,2 @@
<#assign userId=model.aUserInAServer.userReference.id/><#include "assignable_role_place_assigned_user_not_found_exception_text">
<#assign userId=model.userId>
<#include "assignable_role_place_assigned_user_not_found_exception_message">

View File

@@ -1 +1,3 @@
<#assign channelId=model.channelId/><#include "assignable_role_place_channel_does_not_exist_exception_text">
<#assign channelId=model.channelId>
<#assign placeName=model.placeName>
<#include "assignable_role_place_channel_does_not_exist_exception_message">

View File

@@ -1 +0,0 @@
<#assign emoteMention=model.emote.emoteRepr/><#assign placeName=model.placeName/><#include "assignable_role_place_emote_already_defined_exception_text">

View File

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

View File

@@ -1 +1,2 @@
<#assign roleName=model.name/><#include "assignable_role_place_exists_exception_text">
<#assign placeName=model.name>
<#include "assignable_role_place_exists_exception_message">

View File

@@ -1 +1 @@
<#include "assignable_role_place_illegal_configuration_key_exception_text">
<#include "assignable_role_place_illegal_configuration_key_exception_message">

View File

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

View File

@@ -1 +1 @@
<#include "assignable_role_place_not_found_exception_text">
<#include "assignable_role_place_not_found_exception_message">

View File

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

View File

@@ -1 +0,0 @@
<#assign messageId=model.messageId/><#include "assignable_role_place_post_not_found_exception_text">

View File

@@ -1 +0,0 @@
<#assign roleMention=model.role.roleRepr/><#include "assignable_role_place_role_not_usable_exception_text">

View File

@@ -1 +0,0 @@
<#assign emoteMention=model.emote.emoteRepr/><#assign placeName=model.placeName/><#include "emote_not_in_assignable_role_place_exception_text">

View File

@@ -0,0 +1,21 @@
{
"embeds": [
{
<#include "abstracto_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#assign roleText=role.asMention>
<#if added>
<#assign removedRolesText>${removedRoles?map(role -> role.asMention)?join(", ")}</#assign>
"description": "<@safe_include "assignable_role_added_success"/>
<#if removedRoles?size gt 0><@safe_include "assignable_role_added_roles_removed"/></#if>"
<#else>
"description": "<@safe_include "assignable_role_removed_success"/>"
</#if>
}
],
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -1,17 +1,26 @@
{
<#include "assignable_place_color">,
"description": "${place.text?json_string}",
"fields": [
<#list roles as role>
{
"name": "${role.emote.emoteRepr?json_string}",
"value": "${role.description?json_string}",
"inline": "${place.inline?string('true', 'false')}"
<#if role.forceNewMessage>
,"forceNewMessage": "true"
</#if>
}<#sep>,
<#else>
</#list>
]
"embeds": [
{
<#include "assignable_place_color">,
"description": "${placeDescription?json_string}"
}
]
<#if roles?size gt 0>
,"buttons": [
<#list roles as role>
{
"label": "${role.description?json_string}",
"id": "${role.componentId}",
"buttonStyle": "secondary",
<#if role.emoteMarkDown??>
"emoteMarkdown": "${role.emoteMarkDown?json_string}",
</#if>
"metaConfig": {
"persistCallback": false
}
}
<#sep>,
</#list>
]
</#if>
}

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
<build>
<plugins>

View File

@@ -0,0 +1,8 @@
<#macro format_instant instant><t:${instant.epochSecond?c}></#macro>
<#macro format_instant_time instant><t:${instant.epochSecond?c}:t></#macro>
<#macro format_instant_long_time instant><t:${instant.epochSecond?c}:T></#macro>
<#macro format_instant_date instant><t:${instant.epochSecond?c}:d></#macro>
<#macro format_instant_long_date instant><t:${instant.epochSecond?c}:D></#macro>
<#macro format_instant_date_time instant><t:${instant.epochSecond?c}:f></#macro>
<#macro format_instant_long_date_time instant><t:${instant.epochSecond?c}:F></#macro>
<#macro format_instant_relative instant><t:${instant.epochSecond?c}:R></#macro>

View File

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

View File

@@ -0,0 +1,14 @@
{
"embeds": [
{
<#include "abstracto_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
"description": "<@safe_include "command_aborted_notification_text"/>"
}
],
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,27 @@
{
"embeds": [
{
<#include "abstracto_color">,
<#assign text><#include "${commandName}_confirmation"></#assign>
"description": "${text?json_string}"
}
],
"buttons": [
{
"label": "<@safe_include "command_confirmation_message_confirm_field_title"/>",
"id": "${confirmButtonId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "command_confirmation_message_abort_field_title"/>",
"id": "${abortButtonId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
}
]
}

View File

@@ -0,0 +1,8 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "disableFeature_available_features_text">"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "disableFeature_feature_dependencies_text">"
}
]
}

View File

@@ -1 +0,0 @@
<#assign featureString>${features?join(", ")}</#assign><#include "disable_available_features">

View File

@@ -1,4 +1,8 @@
{
<#include "abstracto_color">,
"description": "<@safe_include "documentation_response_embed_description"/>"
"embeds": [
{
<#include "abstracto_color">,
"description": "<@safe_include "documentation_response_embed_description"/>"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "enableFeature_available_features_text">"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "enableFeature_feature_dependencies_text">"
}
]
}

View File

@@ -1 +0,0 @@
<#assign featureString>${features?join(", ")}</#assign><#include "enable_available_features">

View File

@@ -1,9 +1,11 @@
{
"title": {
"title": "<@safe_include "feature_modes_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
"embeds": [
{
"title": {
"title": "<@safe_include "feature_modes_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<#list featureModes as featureMode>
<#assign featureName><@safe_include "feature_${featureMode.featureConfig.feature.key}"/></#assign>
<#assign featureKey=featureMode.featureConfig.feature.key>
@@ -15,4 +17,6 @@
<#else><@safe_include "feature_modes_embed_no_feature_modes_available"/></#list>
"
}
]
}

View File

@@ -1,9 +1,11 @@
{
"title": {
"title": "<@safe_include "features_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
"embeds": [
{
"title": {
"title": "<@safe_include "features_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<#list features as feature>
${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${feature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${feature.featureConfig.feature.key}`
</#list>
@@ -11,4 +13,6 @@ ${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${
${defaultFeature.featureFlagProperty.enabled?string('✅', '❌')} **<@safe_include "feature_${defaultFeature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${defaultFeature.featureConfig.feature.key}` (<@safe_include "features_default_marker"/>)
</#list>
"
}
]
}

View File

@@ -1,9 +1,11 @@
{
"title": {
"title": "<@safe_include "help_command_embed_title"/>"
},
<#include "abstracto_color">,
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}**
"embeds": [
{
"title": {
"title": "<@safe_include "help_command_embed_title"/>"
},
<#include "abstracto_color">,
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}**
<@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?json_string} </#if>
<#if command.help??>
@@ -46,26 +48,28 @@
</#if>
<#if restricted?? && restricted>
<@safe_include "help_command_embed_command_executable_by"/>:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention?json_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_executable_by_nobody"/></#list> </#if>
<#if immuneRoles?? ><@safe_include "help_command_embed_command_immune"/>: <#list immuneRoles as immuneRole> ${immuneRole.asMention?json_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_immune_none"/></#list> </#if>
<#else>
<@safe_include "help_command_embed_command_not_restricted"/>
</#if>
<#if effects??><@safe_include "help_command_embed_command_effects"/>: <#list effects as effect> <@safe_include "effect_type_${effect}"/><#sep>,<#else><@safe_include "help_command_embed_command_effects_none"/></#list> </#if>
</#if>
**<@safe_include "help_command_embed_command_parameters"/>**:
<#if command.parameters??>
<#list command.parameters as parameter><#assign parameter=parameter>
<@safe_include "help_command_embed_command_description"/> `${parameter.name?json_string}`: <#if parameter.templated?? && parameter.templated><@safe_include "${command.name}_parameter_${parameter.name}"/><#else>${(parameter.description?json_string)!""}</#if>
<@safe_include "help_command_embed_command_description"/> `${parameter.name?json_string}`: <#if parameter.templated?? && parameter.templated><@safe_include "${command.name}_parameter_${parameter.name}"/><#else>${(parameter.description?json_string)!""}</#if> <@safe_include "help_command_embed_command_optional"/>
<#list parameter.validators as validator><#assign validator=validator><#assign model=validator.templateModel/><@safe_include "${validator.templateName}"/>
</#list>
<@safe_include "help_command_embed_command_optional"/><#sep>
<#sep>
<#else>
<@safe_include "help_command_embed_command_no_parameters"/>
</#list>
<#else>
<@safe_include "help_command_embed_command_no_parameters"/>
</#if>
"
"
}
]
}

View File

@@ -1,19 +1,23 @@
{
"title": {
<#assign name=module.moduleDefinition.info.name/>
"title": "<@safe_include "help_module_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}**
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?json_string}</#if>
<@safe_include "help_module_embed_commands"/>:
<#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
<#if subModules?has_content && subModules?size gt 0>
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list>
</#if>
",
"footer": {
"text": "<@safe_include "help_command_embed_hint_footer"/>"
}
"embeds": [
{
"title": {
<#assign name=module.moduleDefinition.info.name/>
"title": "<@safe_include "help_module_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}**
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?json_string}</#if>
<@safe_include "help_module_embed_commands"/>:
<#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
<#if subModules?has_content && subModules?size gt 0>
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list>
</#if>
",
"footer": {
"text": "<@safe_include "help_command_embed_hint_footer"/>"
}
}
]
}

View File

@@ -1,15 +1,19 @@
{
"title": {
"title": "<@safe_include "help_modules_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<#list modules as module><#assign module=module/>
**${module.info.name?json_string}**
<#if module.info.templated?? && module.info.templated><@safe_include "module_${module.info.name}_description"/><#else>${module.info.description?json_string}</#if>
</#list>
",
"footer": {
"text": "<@safe_include "help_modules_embed_footer_hint"/>"
}
"embeds": [
{
"title": {
"title": "<@safe_include "help_modules_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<#list modules as module><#assign module=module/>
**${module.info.name?json_string}**
<#if module.info.templated?? && module.info.templated><@safe_include "module_${module.info.name}_description"/><#else>${module.info.description?json_string}</#if>
</#list>
",
"footer": {
"text": "<@safe_include "help_modules_embed_footer_hint"/>"
}
}
]
}

View File

@@ -1,20 +1,25 @@
{
"title": {
"title": "<@safe_include "listChannelGroups_embed_title"/>"
},
<#include "success_color">,
<#if groups?size = 0>
"description": "<@safe_include "listChannelGroups_no_channel_group"/>",
</#if>
"fields": [
<#list groups as group>
"embeds": [
{
"name": "${group.name?json_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/> ${group.enabled?string('✅', '❌')})",
"value": "
<#if group.channelGroupInformation??><#assign model=group.channelGroupInformation.templateModel/> <@safe_include "${group.channelGroupInformation.templateName}"/></#if>
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?json_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
"
}<#sep>,
</#list>
]
"title": {
"title": "<@safe_include "listChannelGroups_embed_title"/>"
},
<#include "success_color">,
<#if groups?size = 0>
"description": "<@safe_include "listChannelGroups_no_channel_group"/>"
<#else>
"fields": [
<#list groups as group>
{
"name": "${group.name?json_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/> ${group.enabled?string('✅', '❌')})",
"value": "
<#if group.channelGroupInformation??><#assign model=group.channelGroupInformation.templateModel/> <@safe_include "${group.channelGroupInformation.templateName}"/></#if>
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?json_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
"
}<#sep>,
</#list>
]
</#if>
}
]
}

View File

@@ -1,11 +1,14 @@
{
"title": {
"title": "<@safe_include "posttarget_embed_title"/>"
},
<#include "success_color">,
"description": "
"embeds": [
{
"title": {
"title": "<@safe_include "posttarget_embed_title"/>"
},
<#include "success_color">,
"description": "
<#list postTargets as postTarget><#assign postTarget=postTarget/>
<#assign postTargetName>${postTarget.postTarget.name?json_string}</#assign>
<#assign statusIndicator>${postTarget.disabled?string('❌', '✅')}</#assign>
<#assign channelMention><#if postTarget.channel?has_content>${postTarget.channel.asMention?json_string}<#else><@safe_include "posttarget_no_channel"/></#if></#assign>
<@safe_include "posttarget_post_target_text"/>
@@ -13,4 +16,6 @@
<@safe_include "posttarget_no_post_targets_found"/>
</#list>
"
}
]
}

View File

@@ -0,0 +1,12 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "
<#list effects as effect>
`${effect}` <@safe_include "effect_type_${effect}_description"/>
</#list>
"
}
]
}

View File

@@ -1,6 +1,8 @@
{
<#include "success_color">,
"description": "
"embeds": [
{
<#include "success_color">,
"description": "
<#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/>
<#assign profanityGroupName>${profanityGroup.groupName?json_string}</#assign>
<@safe_include "showProfanityConfig_group_description"/>
@@ -16,4 +18,6 @@
<@safe_include "showProfanityConfig_no_profanity_groups"/>
</#list>
"
}
]
}

View File

@@ -1,9 +1,13 @@
{
<#include "abstracto_color">,
<#assign uptime>${fmtDuration(uptime)}</#assign>
"description": "${uptime}",
"footer": {
"text": "<@safe_include "uptime_response_embed_start_date_field_title"/>"
},
"timeStamp": "${startDate}"
"embeds": [
{
<#include "abstracto_color">,
<#assign uptime>${fmtDuration(uptime)}</#assign>
"description": "${uptime}",
"footer": {
"text": "<@safe_include "uptime_response_embed_start_date_field_title"/>"
},
"timeStamp": "${startDate}"
}
]
}

View File

@@ -1,10 +1,14 @@
{
<#include "member_author">
<@member_author member=guildChannelMember.member/>,
<#include "warning_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#assign model=conditionDetail.templateModel/>
"description": "<@safe_include "${conditionDetail.templateName}"/>"
"embeds": [
{
<#include "member_author">
<@member_author member=guildChannelMember.member/>,
<#include "warning_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#assign model=conditionDetail.templateModel/>
"description": "<@safe_include "${conditionDetail.templateName}"/>"
}
]
}

View File

@@ -1,2 +1,3 @@
<#assign roleName>${model.role.name}</#assign>
<#assign effect><#include "effect_type_${model.effectTypeKey}"></#assign>
<#include "immune_role_exception_text">

View File

@@ -1,3 +1,3 @@
<#assign featureName=model.featureEnum.key/>
<#assign featureName=model.featureDefinition.key/>
<#assign featureModes><#list model.requiredModes as mode>${mode.key}<#sep>,</#list></#assign>
<#include "incorrect_feature_mode_exception_text">

View File

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

View File

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

View File

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

View File

@@ -1,26 +1,30 @@
{
<#include "member_author">
<#if user?has_content>
<@member_author member=user.member/>,
<#else>
"author":
{
"name": "${fullUser.user.name?json_string}#${fullUser.user.discriminator}",
"avatar": "${fullUser.user.effectiveAvatarUrl}"
},
</#if>
<#include "exception_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#if template?has_content>
<#if template.templateModel?has_content>
<#assign model=template.templateModel/>
"description": "<@safe_include "${template.templateName}"/>"
</#if>
<#elseif throwable.localizedMessage?has_content>
"description": "${throwable.localizedMessage?json_string}"
<#else>
"description": "${throwable.class.simpleName?json_string}"
</#if>
"embeds": [
{
<#include "member_author">
<#if user?has_content>
<@member_author member=user.member/>,
<#else>
"author":
{
"name": "${fullUser.user.name?json_string}#${fullUser.user.discriminator}",
"avatar": "${fullUser.user.effectiveAvatarUrl}"
},
</#if>
<#include "exception_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#if template?has_content>
<#if template.templateModel?has_content>
<#assign model=template.templateModel/>
"description": "<@safe_include "${template.templateName}"/>"
</#if>
<#elseif throwable.localizedMessage?has_content>
"description": "${throwable.localizedMessage?json_string}"
<#else>
"description": "${throwable.class.simpleName?json_string}"
</#if>
}
]
}

View File

@@ -0,0 +1,25 @@
{
"embeds": [
{
<#include "member_author">
<@member_author member=member/>,
<#include "exception_color">,
"metaConfig" : {
"preventEmptyEmbed": "true"
},
<#if template?has_content>
<#if template.templateModel?has_content>
<#assign model=template.templateModel/>
"description": "<@safe_include "${template.templateName}"/>"
</#if>
<#elseif throwable.localizedMessage?has_content>
"description": "${throwable.localizedMessage?json_string}"
<#else>
"description": "${throwable.class.simpleName?json_string}"
</#if>
}
],
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -1,3 +1,3 @@
<#assign featureName=model.featureEnum.key/>
<#assign featureName=model.featureDefinition.key/>
<#assign featureModes><#list model.requiredModes as mode>${mode.key}<#sep>,</#list></#assign>
<#include "incorrect_feature_mode_exception_text">

View File

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

View File

@@ -0,0 +1,2 @@
<#assign postTargetKey=model.postTargetKey>
<#include "post_target_not_usable_exception_text">

View File

@@ -0,0 +1,60 @@
{
"label": "<@safe_include "paginator_exit_button_label"/>",
"id": "${exitButtonId}",
"buttonStyle": "secondary",
"emoteMarkdown": "⏹️",
"metaConfig": {
"persistCallback": false
}
}
<#if !exitOnly>
,
{
"label": "<@safe_include "paginator_start_button_label"/>",
"id": "${startButtonId}",
"buttonStyle": "secondary",
<#if counter = 0>
"disabled": true,
</#if>
"emoteMarkdown": "⏮",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "paginator_previous_button_label"/>",
"id": "${previousButtonId}",
"buttonStyle": "secondary",
<#if counter = 0>
"disabled": true,
</#if>
"emoteMarkdown": "◀️",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "paginator_next_button_label"/>",
"id": "${nextButtonId}",
"buttonStyle": "secondary",
<#if counter = chunks?size -1>
"disabled": true,
</#if>
"emoteMarkdown": "▶",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "paginator_last_button_label"/>",
"id": "${lastButtonId}",
"buttonStyle": "secondary",
<#if counter = chunks?size -1>
"disabled": true,
</#if>
"emoteMarkdown": "⏭",
"metaConfig": {
"persistCallback": false
}
}
</#if>

View File

@@ -0,0 +1,3 @@
<#assign page=page>
<#assign pageCount=pageCount>
<#include "paginator_footer_text">

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -1,5 +1,9 @@
{
<#include "abstracto_color">,
<#assign choice=chosenValue>
"description": "<@safe_include "choose_response_description"/>"
"embeds": [
{
<#include "abstracto_color">,
<#assign choice=chosenValue>
"description": "<@safe_include "choose_response_description"/>"
}
]
}

View File

@@ -1,11 +1,15 @@
{
"color" : {
"r": 31,
"g": 35,
"b": 122
},
<#assign first=firstPart>
<#assign second=secondPart>
<#assign chance=rolled>
"description": "<@safe_include "loveCalc_response_embed_description"/>"
"embeds": [
{
"color" : {
"r": 31,
"g": 35,
"b": 122
},
<#assign first=firstPart>
<#assign second=secondPart>
<#assign chance=rolled>
"description": "<@safe_include "loveCalc_response_embed_description"/>"
}
]
}

View File

@@ -1,7 +1,11 @@
{
<#include "abstracto_color">,
<#assign mockingText=mockingText>
<#assign originalText=originalText>
"description": "<@safe_include "mock_response_text"/>",
"thumbnail": "https://i.imgur.com/upItEiG.jpg"
"embeds": [
{
<#include "abstracto_color">,
<#assign mockingText=mockingText>
<#assign originalText=originalText>
"description": "<@safe_include "mock_response_text"/>",
"thumbnail": "https://i.imgur.com/upItEiG.jpg"
}
]
}

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
<build>
<plugins>
<plugin>

View File

@@ -1,15 +1,24 @@
{
<#macro userDisplay user>
${user.rank} <#if user.member?has_content><@member_user_name member=user.member/> <#else>${user.experience.user.userReference.id?c}</#if> ${user.experience.experience} ${user.experience.currentLevel.level} ${user.experience.messageCount}
</#macro>
<#include "member_author">
<@member_author member=member/>,
<#include "success_color">,
"description": "
<@safe_include "leaderboard_rank_column"/> | <@safe_include "leaderboard_name_column"/> | <@safe_include "leaderboard_experience_column"/> | <@safe_include "leaderboard_level_column"/> | <@safe_include "leaderboard_messages_column"/>
<#list userExperiences as user>
<@userDisplay user=user />
</#list>
<@userDisplay user=userExecuting />
"
"embeds": [
{
<#macro userDisplay user>
[${user.rank}] -> <#if user.member?has_content>**<@member_user_name member=user.member/>**<#else>${user.userId?c}</#if>
<@safe_include "leaderboard_experience_column"/>: ${user.experience} | <@safe_include "leaderboard_level_column"/>: ${user.level} | <@safe_include "leaderboard_messages_column"/>: ${user.messageCount}
</#macro>
<#include "success_color">,
"description": "
<@safe_include "leaderboard_rank_column"/> | <@safe_include "leaderboard_name_column"/> | <@safe_include "leaderboard_experience_column"/> | <@safe_include "leaderboard_level_column"/> | <@safe_include "leaderboard_messages_column"/>
<#list userExperiences as user>
<@userDisplay user=user />
</#list>
<@safe_include "leaderboard_own_placement"/>:
<@userDisplay user=userExecuting />
",
"footer": {
"text": "<@safe_include "leaderboard_footer"/>"
}
}
]
}

View File

@@ -0,0 +1,9 @@
{
"embeds": [
{
<#include "success_color">,
"description": "<#list levelRoles as role><#if role.role??><#assign roleRepr=role.role.asMention><#else><#assign roleRepr=role.roleId?c></#if><#assign levelRepr=role.level><@safe_include "levelRoles_response_description"/><#sep>
<#else><@safe_include "levelRoles_no_roles_found"/></#list>"
}
]
}

View File

@@ -1,15 +1,19 @@
{
<#include "member_author">
<@member_author member=member/>,
"title": {
"title": "<@safe_include "list_disabled_experience_roles_embed_title"/>"
},
<#include "success_color">,
"description": "
<#list roles as role>
${role.role.asMention?json_string}
<#else>
<@safe_include "list_disabled_experience_roles_embed_no_roles"/>
</#list>
"
"embeds": [
{
<#include "member_author">
<@member_author member=member/>,
"title": {
"title": "<@safe_include "list_disabled_experience_roles_embed_title"/>"
},
<#include "success_color">,
"description": "
<#list roles as role>
${role.role.asMention?json_string}
<#else>
<@safe_include "list_disabled_experience_roles_embed_no_roles"/>
</#list>
"
}
]
}

View File

@@ -1,32 +1,36 @@
{
<#include "member_author">
<@member_author member=member/>,
<#include "success_color">,
"fields": [
{
"name": "<@safe_include "rank_xp_field_title"/>",
"value": "${rankUser.experience.experience}",
"inline": "true"
},
{
"name": "<@safe_include "rank_level_field_title"/>",
"value": "${rankUser.experience.currentLevel.level}",
"inline": "true"
},
{
"name": "<@safe_include "rank_messages_field_title"/>",
"value": "${rankUser.experience.messageCount}",
"inline": "true"
},
{
"name": "<@safe_include "rank_to_next_level_field_title"/>",
"value": "${experienceToNextLevel}",
"inline": "true"
},
{
"name": "<@safe_include "rank_rank_field_title"/>",
"value": "${rankUser.rank}",
"inline": "true"
}
]
"embeds": [
{
<#include "member_author">
<@member_author member=member/>,
<#include "success_color">,
"fields": [
{
"name": "<@safe_include "rank_xp_field_title"/>",
"value": "${rankUser.experience}",
"inline": "true"
},
{
"name": "<@safe_include "rank_level_field_title"/>",
"value": "${rankUser.level}",
"inline": "true"
},
{
"name": "<@safe_include "rank_messages_field_title"/>",
"value": "${rankUser.messageCount}",
"inline": "true"
},
{
"name": "<@safe_include "rank_to_next_level_field_title"/>",
"value": "${experienceToNextLevel}",
"inline": "true"
},
{
"name": "<@safe_include "rank_rank_field_title"/>",
"value": "${rankUser.rank}",
"inline": "true"
}
]
}
]
}

View File

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

View File

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

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>invite-filter</artifactId>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>invite-filter-templates-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

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,15 @@
{
"embeds": [
{
"title": {
"title": "<@safe_include "tracked_invite_links_embed_title"/>"
},
<#include "success_color">,
"description": "<#list inviteLinks as link><#assign link=link/>
<#assign linkText>${link.serverName}</#assign>
<#assign linkUses>${link.uses}</#assign>
<@safe_include "tracked_invite_links_link_display"/><#else><@safe_include "tracked_invite_links_no_links"/>
</#list>"
}
]
}

View File

@@ -0,0 +1,21 @@
{
"embeds": [
{
<#include "member_author">
<@member_author member=author/>,
<#assign authorMention=author.asMention>
"description": "<@safe_include "invite_link_deleted_embed_description"/>",
<#include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "invite_link_deleted_invite_field_header"/>",
"value": "<#list invites as invite><#if invite.count gt 1>${invite.count}x </#if>${invite.code}<#if invite.guildName?has_content> (${invite.guildName})</#if><#sep>, </#list>"
},
{
"name": "<@safe_include "invite_link_deleted_message_link_title"/>",
"value": "[${channel.name?json_string}](${message.jumpUrl})"
}
]
}
]
}

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

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

View File

@@ -1,45 +1,67 @@
{
<#if author??>
<#include "user_author">
<@user_author user=author/>
<#else>
<@safe_include "deleted_user_author"/>
</#if>,
<#include "abstracto_color">,
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
"description": "${embeddedMessage.content?json_string}
<#list embeddedMessage.embeds>
<@safe_include "message_embed_embed_embeds_name"/>:
<#items as embed><#assign embed=embed/>
<@safe_include "message_embed_embed_description"/>: <#if embed.description?has_content >${embed.description?json_string}</#if> <#if embed.imageUrl?has_content> <@safe_include "message_embed_embed_image_url"/>: ${embed.imageUrl} </#if>
</#items>
</#list>
",
</#if>
<#if embeddedMessage.attachments?size gt 0>
"imageUrl": "${embeddedMessage.attachments[0].proxyUrl}",
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedThumbnail??>
"imageUrl": "${embeddedMessage.embeds[0].cachedThumbnail.proxyUrl}",
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedImageInfo??>
"imageUrl": "${embeddedMessage.embeds[0].cachedImageInfo.proxyUrl}",
</#if>
"fields": [
{
"name": "<@safe_include "message_embed_embed_quoted_by_field_title"/>",
<#assign user>${embeddingUser.asMention?json_string}</#assign>
<#assign channelName>${sourceChannel.name?json_string}</#assign>
<#assign messageLink>${embeddedMessage.messageUrl}</#assign>
"value": "<@safe_include "message_embed_embed_quoted_by_field_value"/>"
}
<#if embeddedMessage.referencedMessage??>
,
{
<#assign referencedMessageLink=embeddedMessage.referencedMessage.messageUrl/>
<#assign repliedToAuthorMention>${r"<@"}${embeddedMessage.referencedMessage.author.authorId?c}${r">"}</#assign>
"name": "<@safe_include "message_embed_embed_referenced_message_field_title"/>",
"value": "<@safe_include "message_embed_embed_referenced_message_field_value"/>"
}
"embeds": [
{
<#if author??>
<#include "user_author">
<@user_author user=author/>
<#else>
<#include "deleted_user_author"/>
</#if>,
<#include "abstracto_color">,
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
"description": "${embeddedMessage.content?json_string}
<#list embeddedMessage.embeds>
<@safe_include "message_embed_embed_embeds_name"/>:
<#items as embed><#assign embed=embed/>
<@safe_include "message_embed_embed_description"/>: <#if embed.description?has_content >${embed.description?json_string}</#if> <#if embed.imageUrl?has_content> <@safe_include "message_embed_embed_image_url"/>: ${embed.imageUrl} </#if>
</#items>
</#list>
",
</#if>
<#if embeddedMessage.attachments?size gt 0>
"imageUrl": "${embeddedMessage.attachments[0].proxyUrl}",
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedThumbnail??>
"imageUrl": "${embeddedMessage.embeds[0].cachedThumbnail.proxyUrl}",
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedImageInfo??>
"imageUrl": "${embeddedMessage.embeds[0].cachedImageInfo.proxyUrl}",
</#if>
"fields": [
{
"name": "<@safe_include "message_embed_embed_quoted_by_field_title"/>",
<#assign user>${embeddingUser.asMention?json_string}</#assign>
<#assign channelName>${sourceChannel.name?json_string}</#assign>
<#assign messageLink>${embeddedMessage.messageUrl}</#assign>
"value": "<@safe_include "message_embed_embed_quoted_by_field_value"/>"
}
<#if embeddedMessage.referencedMessage??>
,
{
<#assign referencedMessageLink=embeddedMessage.referencedMessage.messageUrl/>
<#assign repliedToAuthorMention>${r"<@"}${embeddedMessage.referencedMessage.author.authorId?c}${r">"}</#assign>
"name": "<@safe_include "message_embed_embed_referenced_message_field_title"/>",
"value": "<@safe_include "message_embed_embed_referenced_message_field_value"/>"
}
</#if>
],
"timeStamp": "${embeddedMessage.timeCreated}"
}
]
<#if useButton>
,"buttons": [
{
"label": "<@safe_include "message_embed_button_delete"/>",
"id": "${buttonConfigModel.buttonId}",
"buttonStyle": "danger",
"metaConfig": {
"persistCallback": false
}
}
]
</#if>
],
"timeStamp": "${embeddedMessage.timeCreated}"
<#if referencedMessageId?has_content && mentionsReferencedMessage?has_content>
,"referencedMessageId": "${referencedMessageId?c}",
"messageConfig": {
"mentionsReferencedMessage": ${mentionsReferencedMessage?string('true', 'false')}
}
</#if>
}

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -1,13 +1,17 @@
{
"imageUrl": "${imageUrl}",
<#include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",
"value": "[<@safe_include "messageDeleted_attachment_link_display_text"/>](${imageUrl})"
}
],
"footer": {
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
}
"embeds": [
{
"imageUrl": "${imageUrl}",
<#include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",
"value": "[<@safe_include "messageDeleted_attachment_link_display_text"/>](${imageUrl})"
}
],
"footer": {
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
}
}
]
}

View File

@@ -1,16 +1,20 @@
{
<#include "member_author">
<@member_author member=member/>,
"description": "<@safe_include "messageDeleted_description_text"/>",
<#include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageDeleted_original_message_field_title"/>",
"value": "${cachedMessage.content?json_string}"
},
{
"name": "<@safe_include "messageDeleted_message_link_field_title"/>",
"value": "[${channel.name?json_string}](${cachedMessage.messageUrl})"
}
]
"embeds": [
{
<#include "member_author">
<@member_author member=member/>,
"description": "<@safe_include "messageDeleted_description_text"/>",
<#include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageDeleted_original_message_field_title"/>",
"value": "${cachedMessage.content?json_string}"
},
{
"name": "<@safe_include "messageDeleted_message_link_field_title"/>",
"value": "[${channel.name?json_string}](${cachedMessage.messageUrl})"
}
]
}
]
}

View File

@@ -1,14 +1,18 @@
{
"imageUrl": "${imageUrl}",
<#include "abstracto_color"/>,
"description": "<@safe_include "messageEdited_attachment_removed_description"/>",
"fields": [
{
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",
"value": "[<@safe_include "messageDeleted_attachment_link_display_text"/>](${imageUrl})"
}
],
"footer": {
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
}
"embeds": [
{
"imageUrl": "${imageUrl}",
<#include "abstracto_color"/>,
"description": "<@safe_include "messageEdited_attachment_removed_description"/>",
"fields": [
{
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",
"value": "[<@safe_include "messageDeleted_attachment_link_display_text"/>](${imageUrl})"
}
],
"footer": {
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
}
}
]
}

View File

@@ -1,20 +1,24 @@
{
<#include "member_author">
<@member_author member=member/>,
<#include "abstracto_color"/>,
"description": "<@safe_include "messageEdited_description_text"/>",
"fields": [
{
"name": "<@safe_include "messageEdited_original_message_field_title"/>",
"value": "${messageBefore.content?json_string}"
},
{
"name": "<@safe_include "messageEdited_new_message_field_title"/>",
"value": "${messageAfter.contentRaw?json_string}"
},
{
"name": "<@safe_include "messageEdited_link_field_title"/>",
"value": "[${messageChannel.name?json_string}](${messageBefore.messageUrl})"
}
]
"embeds": [
{
<#include "member_author">
<@member_author member=member/>,
<#include "abstracto_color"/>,
"description": "<@safe_include "messageEdited_description_text"/>",
"fields": [
{
"name": "<@safe_include "messageEdited_original_message_field_title"/>",
"value": "${messageBefore.content?json_string}"
},
{
"name": "<@safe_include "messageEdited_new_message_field_title"/>",
"value": "${messageAfter.contentRaw?json_string}"
},
{
"name": "<@safe_include "messageEdited_link_field_title"/>",
"value": "[${messageChannel.name?json_string}](${messageBefore.messageUrl})"
}
]
}
]
}

View File

@@ -1,5 +1,9 @@
{
<#assign user>${member.user.name}#${member.user.discriminator} (${member.asMention}: ${member.id})</#assign>
"description": "<@safe_include "user_joined_text"/>",
<#include "abstracto_color"/>
"embeds": [
{
<#assign user>${member.user.name}#${member.user.discriminator} (${member.asMention}: ${member.id})</#assign>
"description": "<@safe_include "user_joined_text"/>",
<#include "abstracto_color"/>
}
]
}

View File

@@ -1,5 +1,9 @@
{
<#assign user>${user.name}#${user.discriminator} (${user.id})</#assign>
"description": "<@safe_include "user_left_text"/>",
<#include "abstracto_color"/>
"embeds": [
{
<#assign user>${user.name}#${user.discriminator} (${user.id})</#assign>
"description": "<@safe_include "user_left_text"/>",
<#include "abstracto_color"/>
}
]
}

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.2.5</version>
<version>1.3.0</version>
<build>
<plugins>
<plugin>

View File

@@ -1,27 +1,37 @@
{
<#include "full_member_info">
<#include "member_author">
<@member_author member=bannedUser/>,
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
"value": "<@full_member_info member=bannedUser/>"
},
{
"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}"
}
]
"embeds": [
{
<#include "user_detail">
<#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": "<@user_detail user=bannedUser/>"
},
{
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
"value": "<@full_member_info member=banningMember/>"
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
"value": "[${commandMessage.channel.name?json_string}](${commandMessage.jumpUrl})"
},
{
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?json_string}"
}
<#if deletionDays gt 0>
,
{
"name": "<@safe_include "ban_log_deletion_days_field_title"/>",
"value": "${deletionDays?c}"
}
</#if>
]
}
]
}

View File

@@ -0,0 +1,3 @@
<#assign serverName=serverName>
<#assign reason=reason>
<#include "ban_notification_text">

View File

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

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

@@ -1,27 +1,31 @@
{
<#include "full_member_info">
<#include "member_author">
<@member_author member=kickedUser/>,
"title": {
"title": "<@safe_include "kick_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "kick_log_kicked_user_field_title"/>",
"value": "<@full_member_info member=kickedUser/>"
},
{
"name": "<@safe_include "kick_log_kicking_user_field_title"/>",
"value": "<@full_member_info member=member/>"
},
{
"name": "<@safe_include "kick_log_jump_link_field_title"/>",
"value": "[${channel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "kick_log_reason_field_title"/>",
"value": "${reason?json_string}"
}
]
"embeds": [
{
<#include "full_member_info">
<#include "member_author">
<@member_author member=kickedUser/>,
"title": {
"title": "<@safe_include "kick_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "kick_log_kicked_user_field_title"/>",
"value": "<@full_member_info member=kickedUser/>"
},
{
"name": "<@safe_include "kick_log_kicking_user_field_title"/>",
"value": "<@full_member_info member=member/>"
},
{
"name": "<@safe_include "kick_log_jump_link_field_title"/>",
"value": "[${channel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "kick_log_reason_field_title"/>",
"value": "${reason?json_string}"
}
]
}
]
}

View File

@@ -1,27 +1,32 @@
<#include "format_instant">
{
"author": {
<#if specifiedUser??>
"name": "<@member_user_name member=specifiedUser.member/>",
"avatar": "${specifiedUser.member.user.effectiveAvatarUrl}"
<#else>
"name": "<@member_user_name member=member/>",
"avatar": "${member.user.effectiveAvatarUrl}"
</#if>
},
"title": {
<#if specifiedUser??>
<#assign user><@member_user_name member=specifiedUser.member/></#assign>
"title": "<@safe_include "user_notes_embed_user_title"/>"
<#else>
"title": "<@safe_include "user_notes_embed_title"/>"
</#if>
},
<#include "success_color">,
"description": "<#list userNotes as note><#assign note=note/>
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?json_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
<#assign noteText>${note.note.note?json_string}</#assign>
<#assign noteId>${note.note.userNoteId.id}</#assign>
<#assign date>${formatDate(note.note.created, "yyyy-MM-dd HH:mm:ss")}</#assign>
<@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>
</#list>"
"embeds": [
{
"author": {
<#if specifiedUser??>
"name": "<@member_user_name member=specifiedUser.member/>",
"avatar": "${specifiedUser.member.user.effectiveAvatarUrl}"
<#else>
"name": "<@member_user_name member=member/>",
"avatar": "${member.user.effectiveAvatarUrl}"
</#if>
},
"title": {
<#if specifiedUser??>
<#assign user><@member_user_name member=specifiedUser.member/></#assign>
"title": "<@safe_include "user_notes_embed_user_title"/>"
<#else>
"title": "<@safe_include "user_notes_embed_title"/>"
</#if>
},
<#include "success_color">,
"description": "<#list userNotes as note><#assign note=note/>
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?json_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
<#assign noteText>${note.note.note?json_string}</#assign>
<#assign noteId>${note.note.userNoteId.id}</#assign>
<#assign date><@format_instant_date_time instant=note.note.created/></#assign>
<@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>
</#list>"
}
]
}

View File

@@ -1,39 +1,44 @@
<#include "full_member_info">
<#include "format_instant">
<#include "member_author">
{
<#include "full_member_info">
<#include "member_author">
<@member_author member=mutedUser/>,
"title": {
"title": "<@safe_include "mute_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "mute_log_muted_user_field_title"/>",
"value": "<@full_member_info member=mutedUser/>"
},
{
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
"value": "<@full_member_info member=mutingUser/>"
},
{
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
"value": "${reason?json_string}"
},
{
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
"value": "${fmtDuration(muteDuration)}"
},
{
"name": "<@safe_include "mute_log_muted_until_field_title"/>",
"value": "${formatDate(muteTargetDate, "yyyy-MM-dd HH:mm:ss")}"
}
],
"footer": {
"text": "<@safe_include "mute_log_mute_id_footer"/>"
},
"timeStamp": "${muteDate}"
"embeds": [
{
<@member_author member=mutedUser/>,
"title": {
"title": "<@safe_include "mute_log_title"/>"
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "mute_log_muted_user_field_title"/>",
"value": "<@full_member_info member=mutedUser/>"
},
{
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
"value": "<@full_member_info member=mutingUser/>"
},
{
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
"value": "${reason?json_string}"
},
{
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
"value": "${fmtDuration(muteDuration)}"
},
{
"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}"
}
]
}

Some files were not shown because too many files have changed in this diff Show More