introduced color templates to manage the colors in a central way

created member author macro
created full member info macro
created member name macro
replaced some missed places with translation templates
made some templates for translation easier
This commit is contained in:
Sheldan
2020-08-16 12:38:32 +02:00
parent 8a33ff6099
commit a78bc99933
87 changed files with 202 additions and 388 deletions

View File

@@ -1,12 +1,8 @@
{
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#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/>
<#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"/>
</#list>

View File

@@ -1,10 +1,6 @@
{
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "assignable_place_color">,
"description": "<@safe_include "assignable_role_places_overview_description"/>:
<#list places as place>`<#assign place=place/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
<#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>
"
}

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 220,
"g": 20,
"b": 60
}

View File

@@ -1 +1 @@
"description": "<@safe_include "assignable_role_place_assigned_user_not_found_exception_text"/>"
"description": "<#assign userId=model.aUserInAServer.userReference.id/><@safe_include "assignable_role_place_assigned_user_not_found_exception_text"/>"

View File

@@ -1 +1 @@
"description": "<@safe_include "assignable_role_place_channel_does_not_exist_exception_text"/>"
"description": "<#assign channelId=model.channelId/><@safe_include "assignable_role_place_channel_does_not_exist_exception_text"/>"

View File

@@ -1 +1 @@
"description": "<@safe_include "assignable_role_place_emote_already_defined_exception_text"/>"
"description": "<#assign emoteMention=model.emote.emoteRepr/><#assign placeName=model.placeName/><@safe_include "assignable_role_place_emote_already_defined_exception_text"/>"

View File

@@ -1 +1 @@
"additionalMessage": "<@safe_include "assignable_role_place_exists_exception_text"/>"
"additionalMessage": "<#assign roleName=model.name/><@safe_include "assignable_role_place_exists_exception_text"/>"

View File

@@ -1 +1 @@
"description": "<@safe_include "assignable_role_place_post_not_found_exception_text"/>"
"description": "<#assign messageId=model.messageId/><@safe_include "assignable_role_place_post_not_found_exception_text"/>"

View File

@@ -1 +1 @@
"description": "<@safe_include "assignable_role_place_role_not_usable_exception_text"/>"
"description": "<#assign roleMention=model.role.roleRepr/><@safe_include "assignable_role_place_role_not_usable_exception_text"/>"

View File

@@ -1 +1 @@
"description": "<@safe_include "emote_not_in_assignable_role_place_exception_text"/>"
"description": "<#assign emoteMention=model.emote.emoteRepr/><#assign placeName=model.placeName/><@safe_include "emote_not_in_assignable_role_place_exception_text"/>"

View File

@@ -1,9 +1,5 @@
{
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "assignable_place_color">,
"description": "${place.text?js_string}",
"fields": [
<#list roles as role>

View File

@@ -0,0 +1 @@
<#macro full_member_info member><@member_user_name member=member/> ${member.asMention?js_string} (${member.idLong?c})</#macro>

View File

@@ -0,0 +1 @@
<#macro member_author member> "author": { "name": "<@member_user_name member=member/>", "avatar": "${member.user.effectiveAvatarUrl}" }</#macro>

View File

@@ -0,0 +1 @@
<#macro member_user_name member>${member.effectiveName?js_string}#${member.user.discriminator}</#macro>

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 31,
"g": 35,
"b": 122
}

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 220,
"g": 20,
"b": 60
}

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 6,
"g": 145,
"b": 34
}

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 217,
"g": 143,
"b": 50
}

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "features_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "abstracto_color">,
"description": "
<#list features as feature>
${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "${feature.featureConfig.feature.key}_feature"/>** <@safe_include "feature_embed_key"/>: `${feature.featureConfig.feature.key}`

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "help_command_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "abstracto_color">,
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?js_string}**
<@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?js_string} </#if>

View File

@@ -1,15 +1,11 @@
{
<#assign name>${module.moduleInterface.info.name}</#assign>
"title": {
<#assign name=module.moduleInterface.info.name/>
"title": "<@safe_include "help_module_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "abstracto_color">,
"description": "
<@safe_include "help_module_embed_module_name"/>: **${module.moduleInterface.info.name?js_string}**
<@safe_include "help_module_embed_module_name"/>: **${name?js_string}**
<@safe_include "help_module_embed_module_description"/>: ${module.moduleInterface.info.description?js_string}
<@safe_include "help_module_embed_commands"/>:
<#list module.commands as command>`${command.configuration.name?js_string}`<#sep>, </#list>

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "help_modules_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "abstracto_color">,
"description": "
<#list modules as module><#assign module=module/>
<@safe_include "help_module_embed_module_name"/>: **${module.info.name?js_string}**

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "listChannelGroups_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "success_color">,
<#if groups?size = 0>
"description": "<@safe_include "listChannelGroups_no_channel_group"/>",
</#if>

View File

@@ -1 +1 @@
<#include "posttarget_invalid_post_target_response"> <#include "posttarget_no_target">
<#include "posttarget_invalid_post_target_response"> <#include "posttarget_invalid_target">

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "posttarget_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "success_color">,
"description": "
<#list postTargets as postTarget><#assign postTarget=postTarget/>
<#assign postTargetName>${postTarget.postTarget.name?js_string}</#assign>

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${user.member.effectiveName?js_string}",
"avatar": "${user.member.user.effectiveAvatarUrl?js_string}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=user.member/>,
<#include "exception_color">,
"preventEmptyEmbed": "true",
<#if template?has_content>
<#if template.templateModel?has_content>

View File

@@ -1,16 +1,10 @@
{
<#macro userDisplay user>
${user.rank} ${user.member.effectiveName?js_string} ${user.experience.experience} ${user.experience.currentLevel.level} ${user.experience.messageCount}
${user.rank} <@member_user_name member=user.member/> ${user.experience.experience} ${user.experience.currentLevel.level} ${user.experience.messageCount}
</#macro>
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl?js_string}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#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>

View File

@@ -1,16 +1,10 @@
{
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=member/>,
"title": {
"title": "<@safe_include "list_disabled_experience_roles_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "success_color">,
"description": "
<#list roles as role>
${role.role.asMention?js_string}

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=member/>,
<#include "success_color">,
"fields": [
{
"name": "<@safe_include "rank_xp_field_title"/>",

View File

@@ -1,24 +1,19 @@
{
"author": {
"name": "${bannedUser.effectiveName?js_string}",
"avatar": "${bannedUser.user.effectiveAvatarUrl}"
},
<#include "full_member_info">
<#include "member_author">
<@member_author member=bannedUser/>,
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
"value": "${bannedUser.effectiveName?js_string} ${bannedUser.asMention?js_string} (${bannedUser.idLong?c})"
"value": "<@full_member_info member=bannedUser/>"
},
{
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
"value": "${banningUser.effectiveName?js_string} ${banningUser.asMention?js_string} (${banningUser.idLong?c})"
"value": "<@full_member_info member=banningUser/>"
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",

View File

@@ -1,12 +1,9 @@
{
<#include "full_member_info">
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
@@ -14,7 +11,7 @@
},
{
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
"value": "${banningUser.effectiveName?js_string} ${banningUser.asMention?js_string} (${banningUser.idLong?c})"
"value": "<@full_member_info member=banningUser/>"
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",

View File

@@ -1,24 +1,19 @@
{
"author": {
"name": "${kickedUser.effectiveName?js_string}",
"avatar": "${kickedUser.user.effectiveAvatarUrl}"
},
<#include "full_member_info">
<#include "member_author">
<@member_author member=kickedUser/>,
"title": {
"title": "<@safe_include "kick_log_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "kick_log_kicked_user_field_title"/>",
"value": "${kickedUser.effectiveName?js_string} ${kickedUser.asMention?js_string} (${kickedUser.idLong?c})"
"value": "<@full_member_info member=kickedUser/>"
},
{
"name": "<@safe_include "kick_log_kicking_user_field_title"/>",
"value": "${kickingUser.effectiveName?js_string} ${kickingUser.asMention?js_string} (${kickingUser.idLong?c})"
"value": "<@full_member_info member=kickingUser/>"
},
{
"name": "<@safe_include "kick_log_jump_link_field_title"/>",

View File

@@ -1,26 +1,22 @@
{
"author": {
<#if specifiedUser??>
"name": "${specifiedUser.member.effectiveName?js_string}",
"name": "<@member_user_name member=specifiedUser/>",
"avatar": "${specifiedUser.member.user.effectiveAvatarUrl}"
<#else>
"name": "${member.effectiveName?js_string}",
"name": "<@member_user_name member=member/>",
"avatar": "${member.user.effectiveAvatarUrl}"
</#if>
},
"title": {
<#if specifiedUser??>
<#assign user>${specifiedUser.member.effectiveName?js_string}</#assign>
<#assign user><@member_user_name member=specifiedUser/></#assign>
"title": "<@safe_include "user_notes_embed_user_title"/>"
<#else>
"title": "<@safe_include "user_notes_embed_title"/>"
</#if>
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "success_color">,
"description": "<#list userNotes as note><#assign note=note/>
<#assign user>${note.fullUser.member.asMention?js_string}</#assign>
<#assign noteText>${note.note.note?js_string}</#assign>

View File

@@ -1,24 +1,19 @@
{
"author": {
"name": "${mutedUser.effectiveName?js_string}",
"avatar": "${mutedUser.user.effectiveAvatarUrl}"
},
<#include "full_member_info">
<#include "member_author">
<@member_author member=mutedUser/>,
"title": {
"title": "<@safe_include "mute_log_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "mute_log_muted_user_field_title"/>",
"value": "${mutedUser.effectiveName?js_string} ${mutedUser.asMention?js_string} (${mutedUser.idLong?c})"
"value": "<@full_member_info member=mutedUser/>"
},
{
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
"value": "${mutingUser.effectiveName?js_string} ${mutingUser.asMention?js_string} (${mutingUser.idLong?c})"
"value": "<@full_member_info member=mutingUser/>"
},
{
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
@@ -38,7 +33,8 @@
}
],
"footer": {
"text": "<@safe_include "mute_log_mute_id_footer"/> #${mute.id}"
<#assign muteId=mute.id/>
"text": "<@safe_include "mute_log_mute_id_footer"/>"
},
"timeStamp": "${mute.muteDate}"
}

View File

@@ -1,23 +1,18 @@
{
<#include "full_member_info">
<#if unMutedUser?has_content>
"author": {
"name": "${unMutedUser.effectiveName?js_string}",
"avatar": "${unMutedUser.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=unMutedUser/>,
</#if>
"title": {
"title": "<@safe_include "unMute_log_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "unMute_log_unmuted_user_field_title"/>",
<#if unMutedUser?has_content>
"value": "${unMutedUser.effectiveName?js_string} ${unMutedUser.asMention?js_string} (${unMutedUser.idLong?c})"
"value": "<@full_member_info member=mutingUser/>"
<#else>
"value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})"
</#if>
@@ -26,7 +21,7 @@
{
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
<#if mutingUser?has_content>
"value": "${mutingUser.effectiveName?js_string} ${mutingUser.asMention?js_string} (${mutingUser.idLong?c})"
"value": "<@full_member_info member=mutingUser/>"
<#else>
"value": "<@safe_include "user_left_server"/> (${mute.mutingUser.userReference.id?c})"
</#if>
@@ -49,7 +44,8 @@
}
],
"footer": {
"text": "<@safe_include "mute_log_mute_id_footer"/> #${mute.id}"
<#assign muteId=mute.id/>
"text": "<@safe_include "mute_log_mute_id_footer"/>"
},
"timeStamp": "${unmuteDate}"
}

View File

@@ -1,14 +1,8 @@
{
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
}
<#assign userMention>${member.effectiveName?js_string}</#assign>
<#include "member_author">
<@member_author member=member/>,
<#include "success_color">,
<#assign userMention><@member_user_name member=member/></#assign>
,"description" :"<@safe_include "myWarnings_with_decay_embed_description"/>"
</#if>
}

View File

@@ -1 +0,0 @@
The slowmode in channel ${channel.name} has been set to ${channel.slowMode} seconds.

View File

@@ -1,25 +1,20 @@
{
"author": {
"name": "${warnedUser.effectiveName?js_string}",
"avatar": "${warnedUser.user.effectiveAvatarUrl}"
},
<#include "full_member_info">
<#include "member_author">
<@member_author member=warnedUser/>,
"title": {
"title": "<@safe_include "warn_log_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "warn_log_warned_user_field_title"/>",
"value": "${warnedUser.effectiveName?js_string} ${warnedUser.asMention?js_string} (${warnedUser.idLong?c})"
"value": "<@full_member_info member=warnedUser/>"
},
<#if warningUser?has_content>
{
"name": "<@safe_include "warn_log_warning_user_field_title"/>",
"value": "${warningUser.effectiveName?js_string} ${warningUser.asMention?js_string} (${warningUser.idLong?c})"
"value": "<@full_member_info member=warningUser/>"
},
</#if>
<#if warning?has_content>

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 201,
"g": 126,
"b": 26
}

View File

@@ -1,14 +1,8 @@
{
"author": {
"name": "${member.effectiveName?js_string}#${member.user.discriminator}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=member/>,
"description": "<@safe_include "messageDeleted_description_text"/>",
"color" : {
"r": 200,
"g": 0,
"b": 0
},
<@safe_include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageDeleted_original_message_field_title"/>",

View File

@@ -1,14 +1,8 @@
{
"author": {
"name": "${member.effectiveName?js_string}#${member.user.discriminator}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=member/>,
"description": "<@safe_include "messageEdited_description_text"/>",
"color" : {
"r": 200,
"g": 0,
"b": 0
},
<@safe_include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageEdited_original_message_field_title"/>",

View File

@@ -2,13 +2,9 @@
"title": {
"title": "<@safe_include "warnDecay_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "moderation_action_color">,
"description": "<#list warnings as warning><#assign warning=warning/>
<#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention?js_string} (${warning.warnedMember.id})</#assign><#else><#assign warnedUser> ${warning.warning.warnedUser.userReference.id?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention?js_string} (${warning.warningMember.id})</#assign><#else><#assign warningUser>${warning.warning.warningUser.userReference.id?c}</#assign></#if> <@safe_include "warnDecay_log_warn_entry"/>
<#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention?js_string} (${warning.warnedMember.id})</#assign><#else><#assign warnedUser> ${warning.warning.warnedUser.userReference.id?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention?js_string} (${warning.warningMember.id})</#assign><#else><#assign warningUser>${warning.warning.warningUser.userReference.id?c}</#assign></#if> <#assign warnDate>${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss")}</#assign><#assign warnReason=warning.warning.reason/> <@safe_include "warnDecay_log_warn_entry"/>
<#else>
<@safe_include "warnDecay_log_no_warnings"/>
</#list>"

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=member/>,
<#include "modmail_color">,
"description": "<@safe_include "modmail_thread_already_exists"/>",
"fields": [
{

View File

@@ -0,0 +1,5 @@
"color" : {
"r": 26,
"g": 201,
"b": 61
}

View File

@@ -3,10 +3,6 @@
"name": "${user.member.effectiveName?js_string}",
"avatar": "${user.member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "exception_color">,
"description": "<@safe_include "reply_exception_cannot_send_message_to_use"/>"
}

View File

@@ -3,10 +3,6 @@
"name": "${user.member.effectiveName?js_string}",
"avatar": "${user.member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "exception_color">,
"description": "<@safe_include "modmail_failed_to_create_mod_mail_thread"/>"
}

View File

@@ -3,10 +3,6 @@
"name": "${user.member.effectiveName?js_string}",
"avatar": "${user.member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "exception_color">,
"description": "<@safe_include "modmail_generic_error"/>"
}

View File

@@ -3,10 +3,6 @@
"name": "${user.member.effectiveName?js_string}",
"avatar": "${user.member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "exception_color">,
"description": "<@safe_include "modmail_post_target_error"/>"
}

View File

@@ -1,8 +1,4 @@
{
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "warning_color">,
"description": "<@safe_include "modmail_no_server_available"/>"
}

View File

@@ -1,17 +1,11 @@
{
"author": {
"name": "${threadUser.member.effectiveName?js_string}",
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=threadUser.member/>,
"title": {
"title": "<@safe_include "modmail_notification_message_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#assign user>${threadUser.member.effectiveName?js_string}#${threadUser.member.user.discriminator}(${threadUser.member.user.id})</#assign>
<#include "modmail_color">,
<#assign user><@member_user_name member=threadUser.member/>(${threadUser.member.user.id})</#assign>
"description": "<@safe_include "modmail_notification_message_description"/>"
<#if roles?size gt 0>
,"additionalMessage": "<#list roles as role>${role.role.asMention?js_string}<#sep>,</#list>"

View File

@@ -1,16 +1,10 @@
{
"author": {
"name": "${threadUser.member.effectiveName?js_string}",
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=threadUser.member/>,
"title": {
"title": "<@safe_include "modmail_thread_user_message_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "modmail_color">,
<#if postedMessage.contentRaw?has_content>
"description": "${postedMessage.contentRaw?js_string}"
</#if>

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "modmail_closing_notification_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "modmail_color">,
<#assign messageCount>${closedThread.messages?size}</#assign>
<#assign user>user</#assign>
<#assign startDate>${formatDate(closedThread.created,"yyyy-MM-dd HH:mm:ss")}</#assign>

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${author.member.effectiveName?js_string}",
"avatar": "${author.member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
}
<#include "member_author">
<@member_author member=author.member/>,
<#include "modmail_color">,
<#if message.embeds[0].description?has_content>
,"description": "${message.embeds[0].description?js_string}"
</#if>

View File

@@ -1,8 +1,4 @@
{
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "modmail_color">,
"description": "${closingMessage?js_string}"
}

View File

@@ -1,16 +1,10 @@
{
"author": {
"name": "${moderator.effectiveName?js_string}",
"avatar": "${moderator.user.effectiveAvatarUrl}"
},
<#include "member_author">
<@member_author member=moderator/>,
"title": {
"title": "<@safe_include "modmail_thread_staff_message_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
}
<#include "modmail_color">,
<#if text?has_content>
, "description": "${text?js_string}"
</#if>

View File

@@ -1,14 +1,8 @@
{
"author": {
"name": "${threadUser.member.effectiveName?js_string}",
"avatar": "${threadUser.member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#assign user>${threadUser.member.effectiveName?js_string}#${threadUser.member.user.discriminator} (${threadUser.member.user.id})</#assign>
<#include "member_author">
<@member_author member=threadUser.member/>,
<#include "modmail_color">,
<#assign user><@member_user_name member=threadUser.member/> (${threadUser.member.user.id})</#assign>
<#assign joinDate>${threadUser.member.timeJoined}</#assign>
<#assign roles><#list threadUser.member.roles as role>${role.asMention?js_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign>
"description": "<@safe_include "modmail_thread_header_embed_description"/>"

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=member/>,
<#include "abstracto_color">,
"description": "<@safe_include "remind_reminder_description"/>",
"fields": [
{

View File

@@ -1,15 +1,9 @@
{
<#assign id>${reminder.id}</#assign>
<#assign messageUrl>${message.jumpUrl}</#assign>
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=member/>,
<#include "abstracto_color">,
"description": "<@safe_include "remind_reminding_description_text"/>",
"additionalMessage": "${member.asMention?js_string}"
}

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${member.effectiveName?js_string}",
"avatar": "${member.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=member/>,
<#include "abstracto_color">,
"title": {
"title": "<@safe_include "reminders_reminders_embed_title"/>"
},
@@ -15,6 +9,8 @@
<#list reminders as reminder><#assign reminder=reminder/>
{
<#assign id>${reminder.id}</#assign>
<#assign reminderTargetDate>${formatDate(reminder.targetDate,"yyyy-MM-dd HH:mm:ss")}</#assign>
<#assign reminderText=reminder.text/>
"name": "<@safe_include "reminders_reminder_field_title"/>",
"value": "<@safe_include "reminders_due_on"/>"
}

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<#assign name=guild.name><@safe_include "serverinfo_embed_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "abstracto_color">,
"fields": [
{
"name": "<@safe_include "serverinfo_embed_id_field_title"/>",
@@ -15,7 +11,7 @@
},
{
"name": "<@safe_include "serverinfo_embed_owner_field_title"/>",
"value": "${guild.owner.effectiveName?js_string}#${guild.owner.user.discriminator}",
"value": "<@member_user_name member=guild.owner/>",
"inline": "true"
},
{
@@ -29,14 +25,14 @@
"inline": "true"
},
{
"name": "<@safe_include "serverinfo_embed_created_field_title">",
"name": "<@safe_include "serverinfo_embed_created_field_title"/>",
"value": "${guild.timeCreated}",
"inline": "true"
},
${safeFieldLength(guild.emotes, 'emote_mention', 'serverinfo_embed_emotes_field_title', 'false')},
{
"name": "<@safe_include "serverinfo_embed_features_field_title"/>",
"value": "<#list guild.features as feature>${feature}<#else>No features</#list>",
"value": "<#list guild.features as feature>${feature}<#else><@safe_include "serverinfo_embed_features_no_features"/></#list>",
"inline": "true"
}
]

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${memberInfo.user.name?js_string}#${memberInfo.user.discriminator}",
"avatar": "${memberInfo.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=memberInfo/>,
<#include "abstracto_color">,
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
"fields": [
{

View File

@@ -2,11 +2,7 @@
"title": {
"title": "<@safe_include "starStats_response_title"/>"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "abstracto_color">,
"description": "<@safe_include "startStats_description"/>",
"fields": [
{

View File

@@ -1,18 +1,14 @@
{
"author": {
<#if suggester?has_content>
"name": "${suggester.effectiveName?js_string}",
"name": "<@member_user_name member=suggester/>",
"avatar": "${suggester.user.effectiveAvatarUrl}"
<#else>
"name": "${suggesterUser.userReference.id}"
</#if>
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#assign user>${member.effectiveName?js_string}</#assign>
<#include "abstracto_color">,
<#assign user><@member_user_name member=member/></#assign>
<#assign id>${suggestion.id}</#assign>
<#if suggestion.state = "ACCEPTED">
"description": "~~${text?js_string}~~ \n✅ ${reason} - <@safe_include "suggest_accepted_by"/>",

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${memberInfo.user.name?js_string}#${memberInfo.user.discriminator}",
"avatar": "${memberInfo.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=memberInfo/>,
<#include "abstracto_color">,
"thumbnail": "${memberInfo.user.effectiveAvatarUrl}",
"fields": [
{

View File

@@ -1,13 +1,7 @@
{
"author": {
"name": "${author.effectiveName?js_string}",
"avatar": "${author.user.effectiveAvatarUrl}"
},
"color" : {
"r": 200,
"g": 0,
"b": 255
},
<#include "member_author">
<@member_author member=author/>,
<#include "abstracto_color">,
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
"description": "${embeddedMessage.content?js_string}
<#list embeddedMessage.embeds>

View File

@@ -1,17 +1,13 @@
{
"author": {
<#if author?has_content>
"name": "${author.effectiveName}",
"name": "<@member_user_name member=author/>",
"avatar": "${author.user.effectiveAvatarUrl}"
<#else>
"name": "${user.id?c} (<@safe_include "user_left_server"/>)"
</#if>
},
"color" : {
"r": 200,
"g": 0,
"b": 255
}
<#include "abstracto_color">,
<#if message.content?has_content || message.embeds?size gt 0>
,"description": "${message.content?js_string}
<#list message.embeds>

View File

@@ -1 +1 @@
#${role.position}: ${role.emote.asMention} with <#if role.awardedRole?has_content>${role.awardedRole.asMention}<#else>Deleted role</#if>: `${role.description}`.
#${rolePosition}: ${emoteMention} with ${roleMention}: `${roleDescription}`.

View File

@@ -1 +1 @@
User ${model.aUserInAServer.userReference.id} was not found in the assigned users.
User ${userId} was not found in the assigned users.

View File

@@ -1 +1 @@
Unable to create assignable place, channel ${model.channelId?c} does not exist.
Unable to create assignable place, channel ${channelId?c} does not exist.

View File

@@ -1 +1 @@
Emote ${model.emote.emoteRepr} is already defined for place ${model.placeName}.
Emote ${emoteMention} is already defined for place ${placeName}.

View File

@@ -1 +1 @@
Assignable roles place ${model.name} already exists.
Assignable roles place ${roleName} already exists.

View File

@@ -1 +1 @@
Assignable role place post with id ${model.messageId} could not be found.
Assignable role place post with id ${messageId} could not be found.

View File

@@ -1 +1 @@
Role ${model.role.roleRepr} is not usable to be used in the assignable role place. It may be higher in the role hierarchy than the bot.
Role ${roleMention} is not usable to be used in the assignable role place. It may be higher in the role hierarchy than the bot.

View File

@@ -1 +1 @@
Emote ${model.emote.emoteRepr} was not found in the assignable place ${model.placeName}.
Emote ${emoteMention} was not found in the assignable place ${placeName}.

View File

@@ -1 +1 @@
${userMention} has current ${currentWarnCount} Warnings and ${totalWarnCount} warnings in total.
${userMention} has currently ${currentWarnCount} warnings and ${totalWarnCount} warnings in total.

View File

@@ -1 +1 @@
${warnedUser} was warned on ${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss")} with reason `${warning.warning.reason}` by ${warningUser}
${warnedUser} was warned on ${warnDate} with reason `${warnReason}` by ${warningUser}

View File

@@ -1 +1 @@
Message from ${member.effectiveName}#${member.user.discriminator} (${member.idLong?c}) removed in ${messageChannel.asMention}
Message from <@member_user_name member=member/> (${member.idLong?c}) removed in ${messageChannel.asMention}

View File

@@ -1 +1 @@
Message from ${member.effectiveName}#${member.user.discriminator} (${member.idLong?c}) edited in ${messageChannel.asMention}
Message from <@member_user_name member=member/> (${member.idLong?c}) edited in ${messageChannel.asMention}

View File

@@ -1 +1 @@
No server for mod mail available.
No server for modmail available.

View File

@@ -1 +1 @@
Due on ${reminder.targetDate} with text ${reminder.text}
Due on ${reminderTargetDate} with text ${reminderText}