mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-27 20:39:08 +00:00
added embed templates
This commit is contained in:
@@ -11,10 +11,9 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core-templates</artifactId>
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<#if days gt 1><#include "duration_days"><#elseif days = 1><#include "duration_day"></#if> <#if hours gt 1><#include "duration_hours"><#elseif hours = 1><#include "duration_hour"></#if> <#if minutes gt 1><#include "duration_minutes"><#elseif minutes = 1><#include "duration_minute"></#if> <#if seconds gt 1><#include "duration_seconds"><#elseif seconds = 1><#include "duration_second"></#if>
|
||||
@@ -0,0 +1 @@
|
||||
<#include "embed_page_count_page">
|
||||
@@ -0,0 +1 @@
|
||||
${object.asMention}
|
||||
@@ -11,7 +11,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>experience-tracking-templates</artifactId>
|
||||
<artifactId>experience-tracking</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
<#macro userDisplay user>
|
||||
${user.rank} ${user.member.effectiveName} ${user.experience.experience} ${user.experience.currentLevel.level} ${user.experience.messageCount}
|
||||
</#macro>
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "
|
||||
<#include "leaderboard_rank_column"> | <#include "leaderboard_name_column"> | <#include "leaderboard_experience_column"> | <#include "leaderboard_level_column"> | <#include "leaderboard_messages_column">
|
||||
<#list userExperiences as user>
|
||||
<@userDisplay user=user />
|
||||
</#list>
|
||||
<@userDisplay user=userExecuting />
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "list_disabled_experience_roles_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "
|
||||
<#list roles as role>
|
||||
${role.role.asMention}
|
||||
<#else>
|
||||
<#include "list_disabled_experience_roles_embed_no_roles">
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "rank_xp_field_title">",
|
||||
"value": "${rankUser.experience.experience}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "rank_level_field_title">",
|
||||
"value": "${rankUser.experience.currentLevel.level}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "rank_messages_field_title">",
|
||||
"value": "${rankUser.experience.messageCount}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "rank_to_next_level_field_title">",
|
||||
"value": "${experienceToNextLevel}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "rank_rank_field_title">",
|
||||
"value": "${rankUser.rank}",
|
||||
"inline": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"additionalMessage": "<#include "syncExpRoles_updating_users_label">: ${currentCount}/${totalUserCount}."
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>moderation-templates</artifactId>
|
||||
<artifactId>moderation</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${bannedUser.effectiveName}",
|
||||
"avatar": "${bannedUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "ban_log_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "ban_log_banned_user_field_title">",
|
||||
"value": "${bannedUser.effectiveName} ${bannedUser.asMention} (${bannedUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "ban_log_banning_user_field_title">",
|
||||
"value": "${banningUser.effectiveName} ${banningUser.asMention} (${banningUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "ban_log_jump_link_field_title">",
|
||||
"value": "[${messageChannel.name}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "ban_log_reason_field_title">",
|
||||
"value": "${reason}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "ban_log_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "ban_log_banned_user_field_title">",
|
||||
"value": "${bannedUserId?c}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "ban_log_banning_user_field_title">",
|
||||
"value": "${banningUser.effectiveName} ${banningUser.asMention} (${banningUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "ban_log_jump_link_field_title">",
|
||||
"value": "[${messageChannel.name}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "ban_log_reason_field_title">",
|
||||
"value": "${reason}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${kickedUser.effectiveName}",
|
||||
"avatar": "${kickedUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "kick_log_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "kick_log_kicked_user_field_title">",
|
||||
"value": "${kickedUser.effectiveName} ${kickedUser.asMention} (${kickedUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "kick_log_kicking_user_field_title">",
|
||||
"value": "${kickingUser.effectiveName} ${kickingUser.asMention} (${kickingUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "kick_log_jump_link_field_title">",
|
||||
"value": "[${messageChannel.name}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "kick_log_reason_field_title">",
|
||||
"value": "${reason}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"author": {
|
||||
<#if specifiedUser??>
|
||||
"name": "${specifiedUser.member.effectiveName}",
|
||||
"avatar": "${specifiedUser.member.user.effectiveAvatarUrl}"
|
||||
<#else>
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
</#if>
|
||||
},
|
||||
"title": {
|
||||
<#if specifiedUser??>
|
||||
<#assign user>${specifiedUser.member.effectiveName}</#assign>
|
||||
"title": "<#include "user_notes_embed_user_title">"
|
||||
<#else>
|
||||
"title": "<#include "user_notes_embed_title">"
|
||||
</#if>
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#list userNotes as note>
|
||||
<#assign user>${note.fullUser.member.asMention}</#assign>
|
||||
<#assign noteText>${note.note.note}</#assign>
|
||||
<#assign noteId>${note.note.id}</#assign>
|
||||
<#assign date>${formatDate(note.note.created, "yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#include "user_notes_note_entry"><#else><#include "user_notes_no_notes">
|
||||
</#list>"
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${mutedUser.effectiveName}",
|
||||
"avatar": "${mutedUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "mute_log_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "mute_log_muted_user_field_title">",
|
||||
"value": "${mutedUser.effectiveName} ${mutedUser.asMention} (${mutedUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_muting_user_field_title">",
|
||||
"value": "${mutingUser.effectiveName} ${mutingUser.asMention} (${mutingUser.idLong?c})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_mute_location_field_title">",
|
||||
"value": "[${messageChannel.name}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_mute_reason_field_title">",
|
||||
"value": "${mute.reason}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_mute_duration_field_title">",
|
||||
"value": "${fmtDuration(muteDuration)}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_muted_until_field_title">",
|
||||
"value": "${formatDate(mute.muteTargetDate, "yyyy-MM-dd HH:mm:ss")}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<#include "mute_log_mute_id_footer"> #${mute.id}"
|
||||
},
|
||||
"timeStamp": "${mute.muteDate}"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
<#if unMutedUser?has_content>
|
||||
"author": {
|
||||
"name": "${unMutedUser.effectiveName}",
|
||||
"avatar": "${unMutedUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
</#if>
|
||||
"title": {
|
||||
"title": "<#include "unMute_log_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "unMute_log_unmuted_user_field_title">",
|
||||
<#if unMutedUser?has_content>
|
||||
"value": "${unMutedUser.effectiveName} ${unMutedUser.asMention} (${unMutedUser.idLong?c})"
|
||||
<#else>
|
||||
"value": "<#include "user_left_server"> (${mute.mutedUser.userReference.id?c})"
|
||||
</#if>
|
||||
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_muting_user_field_title">",
|
||||
<#if mutingUser?has_content>
|
||||
"value": "${mutingUser.effectiveName} ${mutingUser.asMention} (${mutingUser.idLong?c})"
|
||||
<#else>
|
||||
"value": "<#include "user_left_server"> (${mute.mutingUser.userReference.id?c})"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_mute_location_field_title">",
|
||||
"value": "[Link](${messageUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<#include "unMute_log_muted_since_field_title">",
|
||||
"value": "${formatDate(mute.muteDate, "yyyy-MM-dd HH:mm:ss")}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_mute_duration_field_title">",
|
||||
"value": "${fmtDuration(muteDuration)}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "mute_log_mute_reason_field_title">",
|
||||
"value": "${mute.reason}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<#include "mute_log_mute_id_footer"> #${mute.id}"
|
||||
},
|
||||
"timeStamp": "${unmuteDate}"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
}
|
||||
<#assign userMention>${member.effectiveName}</#assign>
|
||||
,"description" :"<#include "myWarnings_with_decay_embed_description">"
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "purge_status_update_message">
|
||||
@@ -0,0 +1 @@
|
||||
The slowmode in channel ${channel.name} has been set to ${channel.slowMode} seconds.
|
||||
@@ -0,0 +1 @@
|
||||
<#include "unMute_has_no_active_mute_message">
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${warnedUser.effectiveName}",
|
||||
"avatar": "${warnedUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "warn_log_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "warn_log_warned_user_field_title">",
|
||||
"value": "${warnedUser.effectiveName} ${warnedUser.asMention} (${warnedUser.idLong?c})"
|
||||
},
|
||||
<#if warningUser?has_content>
|
||||
{
|
||||
"name": "<#include "warn_log_warning_user_field_title">",
|
||||
"value": "${warningUser.effectiveName} ${warningUser.asMention} (${warningUser.idLong?c})"
|
||||
},
|
||||
</#if>
|
||||
<#if warning?has_content>
|
||||
{
|
||||
"name": "<#include "warn_log_warn_location_field_title">",
|
||||
"value": "[${messageChannel.name}](${message.jumpUrl})"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<#include "warn_log_warn_reason_field_title">",
|
||||
"value": "${reason}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
<#if warningUser?has_content>
|
||||
"text": "<#include "warn_log_warn_id_footer"> #${warning.id}"
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
<#assign warnCount>${warnings?size}</#assign>
|
||||
"headerText": "<#include "warnings_header_text">",
|
||||
"items": [
|
||||
<#list warnings as warning>"<#include "warnings_warn_entry">"<#sep>,</#list>
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<#assign warnId>${warning.warning.id}</#assign>
|
||||
<#assign reason>${warning.warning.reason}</#assign>
|
||||
<#assign warnedUserText><#if warning.warnedUser.member??>${warning.warnedUser.member.asMention}(${warning.warnedUser.member.user.id})<#else>${warning.warnedUser.aUserInAServer.id}</#if></#assign>
|
||||
<#assign warningUserText><#if warning.warningUser.member??>${warning.warningUser.member.asMention}(${warning.warningUser.member.user.id})<#else>${warning.warningUser.aUserInAServer.id}</#if></#assign>
|
||||
<#assign warnDate>${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
|
||||
<#include "warnings_warn_entry_text">
|
||||
<#if warning.warning.decayed>
|
||||
<#assign decayDate>${formatDate(warning.warning.decayDate, "yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#include "warnings_warn_is_decayed">
|
||||
</#if>
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_message_found_exception_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "note_not_found_exception_message">
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"imageUrl": "${imageUrl}",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "messageDeleted_attachment_link_field_title">",
|
||||
"value": "[<#include "messageDeleted_attachment_link_display_text">](${imageUrl})"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<#include "messageDeleted_attachment_footer"> #${counter}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}#${member.user.discriminator}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"description": "<#include "messageDeleted_description_text">",
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 0
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "messageDeleted_original_message_field_title">",
|
||||
"value": "${cachedMessage.content}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "messageDeleted_message_link_field_title">",
|
||||
"value": "[${messageChannel.name}](${cachedMessage.messageUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}#${member.user.discriminator}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"description": "<#include "messageEdited_description_text">",
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 0
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "messageEdited_original_message_field_title">",
|
||||
"value": "${messageBefore.content}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "messageEdited_new_message_field_title">",
|
||||
"value": "${messageAfter.contentRaw}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "messageEdited_link_field_title">",
|
||||
"value": "[${messageChannel.name}](${messageBefore.messageUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "warnDecay_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#list warnings as warning>
|
||||
<#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention} (${warning.warnedMember.id})</#assign><#else><#assign warnedUser> ${warning.warning.warnedUser.userReference.id?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention} (${warning.warningMember.id})</#assign><#else><#assign warningUser>${warning.warning.warningUser.userReference.id?c}</#assign></#if> <#include "warnDecay_log_warn_entry">
|
||||
<#else>
|
||||
<#include "warnDecay_log_no_warnings">
|
||||
</#list>"
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>modmail-templates</artifactId>
|
||||
<artifactId>modmail</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "modmail_thread_already_exists">",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "modmail_existing_thread_link_field_title">",
|
||||
"value": "[<#include "modmail_existing_thread_link_content_display_text">](${threadUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign categoryId>${(error.templateModel['categoryId'])!"0"}</#assign><#include "modmail_category_not_setup_text">
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${user.member.effectiveName}",
|
||||
"avatar": "${user.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "close_failed_to_delete_text_channel">"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${user.member.effectiveName}",
|
||||
"avatar": "${user.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "reply_exception_cannot_send_message_to_use">"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${user.member.effectiveName}",
|
||||
"avatar": "${user.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "modmail_failed_to_create_mod_mail_thread">"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${user.member.effectiveName}",
|
||||
"avatar": "${user.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "modmail_generic_error">"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${user.member.effectiveName}",
|
||||
"avatar": "${user.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "modmail_post_target_error">"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "setup_category_not_valid_exception_message">
|
||||
@@ -0,0 +1,5 @@
|
||||
<#include "server_chooser_server_list_description">
|
||||
|
||||
<#list commonGuilds as guild>
|
||||
${guild.reactionEmote} ${guild.guild.guild.name}
|
||||
</#list>
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "modmail_no_server_available">"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${threadUser.member.effectiveName}",
|
||||
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "modmail_notification_message_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#assign user>${threadUser.member.effectiveName}#${threadUser.member.user.discriminator}(${threadUser.member.user.id})</#assign>
|
||||
"description": "<#include "modmail_notification_message_description">"
|
||||
<#if roles?size gt 0>
|
||||
,"additionalMessage": "<#list roles as role>${role.role.asMention}<#sep>,</#list>"
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${threadUser.member.effectiveName}",
|
||||
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "modmail_thread_user_message_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#if postedMessage.contentRaw?has_content>
|
||||
"description": "${postedMessage.contentRaw}"
|
||||
</#if>
|
||||
<#if postedMessage.attachments?size gt 0>
|
||||
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
|
||||
</#if>
|
||||
<#if subscribers?size gt 0>
|
||||
,"additionalMessage": "<#list subscribers as subscriber>${subscriber.member.asMention}<#sep>,</#list>"
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "modmail_closing_notification_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#assign messageCount>${closedThread.messages?size}</#assign>
|
||||
<#assign user>user</#assign>
|
||||
<#assign startDate>${formatDate(closedThread.created,"yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign duration>${fmtDuration(duration)}</#assign>
|
||||
"description": "<#include "close_closing_description">"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${author.member.effectiveName}",
|
||||
"avatar": "${author.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
}
|
||||
<#if message.embeds[0].description?has_content>
|
||||
,"description": "${message.embeds[0].description}"
|
||||
</#if>
|
||||
<#if message.attachments?size gt 0>
|
||||
,"imageUrl": "${message.embeds[0].image.proxyUrl}"
|
||||
</#if>
|
||||
<#if modMailMessage.anonymous>
|
||||
, "additionalMessage": "<#include "modmail_anonymous_message_note">"
|
||||
</#if>
|
||||
,"timeStamp": "${message.timeCreated}"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "${closingMessage}"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${moderator.effectiveName}",
|
||||
"avatar": "${moderator.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "modmail_thread_staff_message_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
}
|
||||
<#if text?has_content>
|
||||
, "description": "${text}"
|
||||
</#if>
|
||||
<#if postedMessage.attachments?size gt 0>
|
||||
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${threadUser.member.effectiveName}",
|
||||
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#assign user>${threadUser.member.effectiveName}#${threadUser.member.user.discriminator} (${threadUser.member.user.id})</#assign>
|
||||
<#assign joinDate>${threadUser.member.timeJoined}</#assign>
|
||||
<#assign roles><#list threadUser.member.roles as role>${role.asMention}<#sep>,<#else><#include "modmail_thread_header_no_roles"></#list></#assign>
|
||||
"description": "<#include "modmail_thread_header_embed_description">"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign category>${param.category.name}</#assign><#include "setup_modmail_category_action_display">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign categoryName><#if category?has_content>${category.name}<#else><#include "setup_modmail_category_message_no_category"></#if></#assign><#include "setup_modmail_category_message_display">
|
||||
@@ -11,7 +11,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>utility-templates</artifactId>
|
||||
<artifactId>utility</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "remind_reminder_description">",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "remind_reminder_duration_field_title">",
|
||||
"value": "${fmtDuration(duration)}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "remind_reminder_note_field_title">",
|
||||
"value": "${reminder.text}"
|
||||
},
|
||||
{
|
||||
"name": "<#include "remind_reminder_link_field_title">",
|
||||
"value": "[<#include "remind_reminder_link_content_display_text">](${messageUrl})"
|
||||
}
|
||||
],
|
||||
"additionalMessage": "${member.asMention}"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
<#assign id>${reminder.id}</#assign>
|
||||
<#assign messageUrl>${message.jumpUrl}</#assign>
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "remind_reminding_description_text">",
|
||||
"additionalMessage": "${member.asMention}"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${member.effectiveName}",
|
||||
"avatar": "${member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"title": {
|
||||
"title": "<#include "reminders_reminders_embed_title">"
|
||||
},
|
||||
"fields": [
|
||||
<#list reminders as reminder>
|
||||
{
|
||||
<#assign id>${reminder.id}</#assign>
|
||||
"name": "<#include "reminders_reminder_field_title">",
|
||||
"value": "<#include "reminders_due_on">"
|
||||
}
|
||||
<#sep>,
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign additionalInfo><#if count gt 1>${count}<#else><#assign count>${list?size}</#assign><#include "serverinfo_embed_emotes_title_total_emotes"></#if></#assign><#include "serverinfo_embed_emotes_field_title_message">
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#assign name=guild.name><#include "serverinfo_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "serverinfo_embed_id_field_title">",
|
||||
"value": "${guild.id}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "serverinfo_embed_owner_field_title">",
|
||||
"value": "${guild.owner.effectiveName}#${guild.owner.user.discriminator}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "serverinfo_embed_members_field_title">",
|
||||
"value": "${guild.memberCount}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "serverinfo_embed_role_count_field_title">",
|
||||
"value": "${guild.roles?size}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "serverinfo_embed_created_field_title">",
|
||||
"value": "${guild.timeCreated}",
|
||||
"inline": "true"
|
||||
},
|
||||
${safeFieldLength(guild.emotes, 'emote_mention', 'serverinfo_embed_emotes_field_title', 'false')},
|
||||
{
|
||||
"name": "<#include "serverinfo_embed_features_field_title">",
|
||||
"value": "<#list guild.features as feature>${feature}<#else>No features</#list>",
|
||||
"inline": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${memberInfo.user.name}#${memberInfo.user.discriminator}",
|
||||
"avatar": "${memberInfo.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "showAvatar_response_embed_user_field_title">",
|
||||
"value": "${memberInfo.user.name}#${memberInfo.user.discriminator}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "showAvatar_response_embed_image_field_title">",
|
||||
"value": "[<#include "showAvatar_response_embed_image_field_value_display">](${memberInfo.user.effectiveAvatarUrl})",
|
||||
"inline": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign name> ${emote.name} </#assign> <#assign url> ${emote.imageUrl} </#assign>**<#include "showEmote_name">**: ${emote.name} **<#include "showEmote_link">**: ${emote.imageUrl}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "starStats_response_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "startStats_description">",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "starStats_top_starred_field_title">",
|
||||
"value": "
|
||||
<#list topPosts as post>
|
||||
<#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</assign><#assign link>${post.messageUrl}</#assign> <#include "starStats_starred_entry">
|
||||
<#else>
|
||||
<#include "starStats_no_starred_messages">
|
||||
</#list>
|
||||
"
|
||||
},
|
||||
{
|
||||
"name": "<#include "starStats_top_starrer_field_title">",
|
||||
"value": "
|
||||
<#list starGiver as starrer>
|
||||
<#assign badge>${badgeEmotes[starrer?index]}</#assign><#assign count>${starrer.starCount}</assign>
|
||||
<#if starrer.member?has_content>
|
||||
<#assign user>${starrer.member.asMention}</#assign> <#include "starStats_starrer_entry">
|
||||
<#else>
|
||||
<#assign user>${starrer.user.id?c}</#assign> <#include "starStats_starrer_entry_left_guild_en_US.ftl">
|
||||
</#if>
|
||||
<#else>
|
||||
<#include "starStats_no_starred_messages">
|
||||
</#list>
|
||||
"
|
||||
},
|
||||
{
|
||||
"name": "<#include "starStats_top_receiver_field_title">",
|
||||
"value": "
|
||||
<#list starReceiver as starred>
|
||||
<#assign badge>${badgeEmotes[starred?index]}</#assign><#assign count>${starred.starCount}</assign>
|
||||
<#if starred.member?has_content>
|
||||
<#assign user>${starred.member.asMention}</#assign> <#include "starStats_receiver_entry">
|
||||
<#else>
|
||||
<#assign user>${starred.user.id?c}</#assign> <#include "starStats_receiver_entry_left_guild">
|
||||
</#if>
|
||||
<#else>
|
||||
<#include "starStats_no_starred_messages">
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"author": {
|
||||
<#if suggester?has_content>
|
||||
"name": "${suggester.effectiveName}",
|
||||
"avatar": "${suggester.user.effectiveAvatarUrl}"
|
||||
<#else>
|
||||
"name": "${suggesterUser.userReference.id}"
|
||||
</#if>
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#assign user>${member.effectiveName}</#assign>
|
||||
<#assign id>${suggestion.id}</#assign>
|
||||
<#if suggestion.state = "ACCEPTED">
|
||||
"description": "~~${text}~~ \n✅ ${reason} - <#include "suggest_accepted_by">",
|
||||
<#elseif suggestion.state = "REJECTED">
|
||||
"description": "~~${text}~~ \n❌ ${reason} - <#include "suggest_rejected_by">",
|
||||
<#else>
|
||||
"description": "${text}",
|
||||
</#if>
|
||||
<#if suggestion.state = "ACCEPTED" || suggestion.state = "REJECTED">
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "suggest_link_field_title">",
|
||||
"value": "[<#include "suggest_link_display_value">](${originalMessageUrl})"
|
||||
}
|
||||
],
|
||||
</#if>
|
||||
"footer": {
|
||||
"text": "<#include "suggest_suggestion_id_footer">"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${memberInfo.user.name}#${memberInfo.user.discriminator}",
|
||||
"avatar": "${memberInfo.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"thumbnail": "${memberInfo.user.effectiveAvatarUrl}",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "userInfo_response_embed_id_field_title">",
|
||||
"value": "${memberInfo.user.id}",
|
||||
"inline": "true"
|
||||
},
|
||||
<#if memberInfo.nickname?has_content>
|
||||
{
|
||||
"name": "<#include "userInfo_response_embed_nickname_field_title">",
|
||||
"value": "${memberInfo.nickname}",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<#include "userInfo_response_embed_status_field_title">",
|
||||
"value": "${memberInfo.onlineStatus.key}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "userInfo_response_embed_joined_field_title">",
|
||||
"value": "${formatDate(memberInfo.timeJoined, "yyyy-MM-dd HH:mm:ss")}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<#include "userInfo_response_embed_registered_field_title">",
|
||||
"value": "${formatDate(memberInfo.timeCreated, "yyyy-MM-dd HH:mm:ss")}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if memberInfo.activities?size gt 0>
|
||||
,
|
||||
{
|
||||
"name": "<#include "userInfo_response_embed_activity_field_title">",
|
||||
"value": "<#list memberInfo.activities as activity>${activity.type}<#sep>, </#list>",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${author.effectiveName}",
|
||||
"avatar": "${author.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
|
||||
"description": "${embeddedMessage.content}
|
||||
<#list embeddedMessage.embeds>
|
||||
<#include "message_embed_embed_embeds_name">:
|
||||
<#items as embed>
|
||||
<#include "message_embed_embed_description">: <#if embed.description?has_content >${embed.description}</#if> <#if embed.imageUrl?has_content> <#include "message_embed_embed_image_url">: ${embed.imageUrl} </#if>
|
||||
</#items>
|
||||
</#list>
|
||||
",
|
||||
</#if>
|
||||
<#if embeddedMessage.attachmentUrls?size gt 0>
|
||||
"imageUrl": "${embeddedMessage.attachmentUrls[0]}",
|
||||
</#if>
|
||||
"fields": [
|
||||
{
|
||||
"name": "<#include "message_embed_embed_quoted_by_field_title">",
|
||||
<#assign user>${embeddingUser.asMention}</#assign>
|
||||
<#assign channelName>${sourceChannel.name}</#assign>
|
||||
<#assign messageLink>${embeddedMessage.messageUrl}</#assign>
|
||||
"value": "<#include "message_embed_embed_quoted_by_field_value">"
|
||||
}
|
||||
],
|
||||
"timeStamp": "${embeddedMessage.timeCreated}"
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"author": {
|
||||
<#if author?has_content>
|
||||
"name": "${author.effectiveName}",
|
||||
"avatar": "${author.user.effectiveAvatarUrl}"
|
||||
<#else>
|
||||
"name": "${user.id?c} (<#include "user_left_server">)"
|
||||
</#if>
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
}
|
||||
<#if message.content?has_content || message.embeds?size gt 0>
|
||||
,"description": "${message.content}
|
||||
<#list message.embeds>
|
||||
<#include "starboard_post_embed_embeds_name">:
|
||||
<#items as embed>
|
||||
<#include "starboard_post_embed_description">: ${embed.description} <#if embed.imageUrl?has_content> <#include "starboard_post_embed_image_url">: ${embed.imageUrl} </#if>
|
||||
</#items>
|
||||
</#list>
|
||||
"
|
||||
</#if>
|
||||
<#assign emote>${starLevelEmote}</#assign>
|
||||
<#assign count>${starCount}</#assign>
|
||||
<#assign messageId>${message.messageId?c}</#assign>
|
||||
<#if channel?has_content>
|
||||
<#assign channelMention>${channel.asMention}</#assign>
|
||||
,"additionalMessage": "<#include "starboard_post_embed_additional_message">"
|
||||
<#else>
|
||||
<#assign channelMention>${aChannel.id?c}</#assign>
|
||||
,"additionalMessage": "<#include "starboard_post_embed_additional_message">"
|
||||
</#if>
|
||||
<#if message.attachmentUrls?size gt 0>
|
||||
,"imageUrl": "${message.attachmentUrls[0]}"
|
||||
</#if>
|
||||
,"fields": [
|
||||
{
|
||||
"name": "<#include "starboard_post_embed_original_field_title">"
|
||||
<#if channel?has_content>
|
||||
,"value": "[${channel.name}](${message.messageUrl})"
|
||||
<#else>
|
||||
,"value": "[${aChannel.id?c}](${message.messageUrl})"
|
||||
</#if>
|
||||
}
|
||||
],
|
||||
"timeStamp": "${message.timeCreated}"
|
||||
}
|
||||
Reference in New Issue
Block a user