[AB-349] refactoring templates to have the new multi embed structure

This commit is contained in:
Sheldan
2021-12-08 16:32:41 +01:00
parent c52dbbb1f3
commit 921a5259ee
112 changed files with 1937 additions and 1488 deletions

View File

@@ -1,4 +1,5 @@
{ {
"embeds": [
<#include "moderation_action_color">, <#include "moderation_action_color">,
<#assign mentionCount=mentionCount/> <#assign mentionCount=mentionCount/>
<#assign memberMention=memberDisplay.memberMention/> <#assign memberMention=memberDisplay.memberMention/>
@@ -13,4 +14,5 @@
"value": "[<@safe_include "massPing_mute_notification_embed_message_link_field_value"/>](${messageLink})" "value": "[<@safe_include "massPing_mute_notification_embed_message_link_field_value"/>](${messageLink})"
} }
] ]
]
} }

View File

@@ -1,17 +1,21 @@
{ {
"embeds": [
{
<#include "assignable_place_color">, <#include "assignable_place_color">,
"description": "<#assign channelMention><#if channelDisplay??>${channelDisplay.channelMention}<#else><@safe_include "assignable_roles_config_embed_no_channel_found"/></#if></#assign> "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> <#assign typeDescription><@safe_include "assignable_role_place_type_description_${type}"/></#assign>
<@safe_include "assignable_roles_config_embed_place_description"/> <@safe_include "assignable_roles_config_embed_place_description"/>
<@safe_include "assignable_roles_config_embed_role_header"/>: <@safe_include "assignable_roles_config_embed_role_header"/>:
<#list roles as role><#assign role=role/> <#list roles as role><#assign role=role/>
<#assign emoteMention><#if role.emoteMarkDown??>${role.emoteMarkDown}<#else>No emote</#if></#assign> <#assign emoteMention><#if role.emoteMarkDown??>${role.emoteMarkDown}<#else>No emote</#if></#assign>
<#assign roleMention=role.roleDisplay.roleMention/> <#assign roleMention=role.roleDisplay.roleMention/>
<#assign roleDescription=role.description/> <#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> <#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"/> <@safe_include "assignable_roles_config_embed_role_description"/>
<#else><@safe_include "assignable_role_config_embed_no_roles"/></#list> <#else><@safe_include "assignable_role_config_embed_no_roles"/></#list>
" "
}
]
} }

View File

@@ -1,6 +1,10 @@
{ {
"embeds": [
{
<#include "assignable_place_color">, <#include "assignable_place_color">,
"description": "<@safe_include "assignable_role_places_overview_description"/>: "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> <#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

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

View File

@@ -1,8 +1,9 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
"metaConfig" : { "metaConfig" : {
"preventEmptyEmbed": "true", "preventEmptyEmbed": "true"
"ephemeral": true
}, },
<#assign roleText=role.asMention> <#assign roleText=role.asMention>
<#if added> <#if added>
@@ -12,4 +13,9 @@
<#else> <#else>
"description": "<@safe_include "assignable_role_removed_success"/>" "description": "<@safe_include "assignable_role_removed_success"/>"
</#if> </#if>
}
],
"messageConfig": {
"ephemeral": true
}
} }

View File

@@ -1,6 +1,10 @@
{ {
"embeds": [
{
<#include "assignable_place_color">, <#include "assignable_place_color">,
"description": "${placeDescription?json_string}" "description": "${placeDescription?json_string}"
}
]
<#if roles?size gt 0> <#if roles?size gt 0>
,"buttons": [ ,"buttons": [
<#list roles as role> <#list roles as role>

View File

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

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
<#assign text><#include "${commandName}_confirmation"></#assign> <#assign text><#include "${commandName}_confirmation"></#assign>
"description": "${text?json_string}", "description": "${text?json_string}"
}
],
"buttons": [ "buttons": [
{ {
"label": "<@safe_include "command_confirmation_message_confirm_field_title"/>", "label": "<@safe_include "command_confirmation_message_confirm_field_title"/>",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "feature_modes_embed_title"/>" "title": "<@safe_include "feature_modes_embed_title"/>"
}, },
@@ -15,4 +17,6 @@
<#else><@safe_include "feature_modes_embed_no_feature_modes_available"/></#list> <#else><@safe_include "feature_modes_embed_no_feature_modes_available"/></#list>
" "
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "features_embed_title"/>" "title": "<@safe_include "features_embed_title"/>"
}, },
@@ -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"/>) ${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> </#list>
" "
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "help_command_embed_title"/>" "title": "<@safe_include "help_command_embed_title"/>"
}, },
@@ -67,5 +69,7 @@
<#else> <#else>
<@safe_include "help_command_embed_command_no_parameters"/> <@safe_include "help_command_embed_command_no_parameters"/>
</#if> </#if>
" "
}
]
} }

View File

@@ -1,19 +1,23 @@
{ {
"embeds": [
{
"title": { "title": {
<#assign name=module.moduleDefinition.info.name/> <#assign name=module.moduleDefinition.info.name/>
"title": "<@safe_include "help_module_embed_title"/>" "title": "<@safe_include "help_module_embed_title"/>"
}, },
<#include "abstracto_color">, <#include "abstracto_color">,
"description": " "description": "
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}** <@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_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"/>: <@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> <#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> <#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> <@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list>
</#if> </#if>
", ",
"footer": { "footer": {
"text": "<@safe_include "help_command_embed_hint_footer"/>" "text": "<@safe_include "help_command_embed_hint_footer"/>"
} }
}
]
} }

View File

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

View File

@@ -1,11 +1,13 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "listChannelGroups_embed_title"/>" "title": "<@safe_include "listChannelGroups_embed_title"/>"
}, },
<#include "success_color">, <#include "success_color">,
<#if groups?size = 0> <#if groups?size = 0>
"description": "<@safe_include "listChannelGroups_no_channel_group"/>", "description": "<@safe_include "listChannelGroups_no_channel_group"/>"
</#if> <#else>
"fields": [ "fields": [
<#list groups as group> <#list groups as group>
{ {
@@ -17,4 +19,7 @@
}<#sep>, }<#sep>,
</#list> </#list>
] ]
</#if>
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "posttarget_embed_title"/>" "title": "<@safe_include "posttarget_embed_title"/>"
}, },
@@ -14,4 +16,6 @@
<@safe_include "posttarget_no_post_targets_found"/> <@safe_include "posttarget_no_post_targets_found"/>
</#list> </#list>
" "
}
]
} }

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "success_color">, <#include "success_color">,
"description": " "description": "
<#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/> <#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/>
@@ -16,4 +18,6 @@
<@safe_include "showProfanityConfig_no_profanity_groups"/> <@safe_include "showProfanityConfig_no_profanity_groups"/>
</#list> </#list>
" "
}
]
} }

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=guildChannelMember.member/>, <@member_author member=guildChannelMember.member/>,
<#include "warning_color">, <#include "warning_color">,
@@ -7,4 +9,6 @@
}, },
<#assign model=conditionDetail.templateModel/> <#assign model=conditionDetail.templateModel/>
"description": "<@safe_include "${conditionDetail.templateName}"/>" "description": "<@safe_include "${conditionDetail.templateName}"/>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<#if user?has_content> <#if user?has_content>
<@member_author member=user.member/>, <@member_author member=user.member/>,
@@ -23,4 +25,6 @@
<#else> <#else>
"description": "${throwable.class.simpleName?json_string}" "description": "${throwable.class.simpleName?json_string}"
</#if> </#if>
}
]
} }

View File

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

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"color" : { "color" : {
"r": 31, "r": 31,
"g": 35, "g": 35,
@@ -8,4 +10,6 @@
<#assign second=secondPart> <#assign second=secondPart>
<#assign chance=rolled> <#assign chance=rolled>
"description": "<@safe_include "loveCalc_response_embed_description"/>" "description": "<@safe_include "loveCalc_response_embed_description"/>"
}
]
} }

View File

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

View File

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

View File

@@ -1,5 +1,9 @@
{ {
"embeds": [
{
<#include "success_color">, <#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> "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>" <#else><@safe_include "levelRoles_no_roles_found"/></#list>"
}
]
} }

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "success_color">, <#include "success_color">,
@@ -29,4 +31,6 @@
"inline": "true" "inline": "true"
} }
] ]
}
]
} }

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=author/>, <@member_author member=author/>,
<#assign authorMention=author.asMention> <#assign authorMention=author.asMention>
@@ -14,4 +16,6 @@
"value": "[${channel.name?json_string}](${message.jumpUrl})" "value": "[${channel.name?json_string}](${message.jumpUrl})"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#if author??> <#if author??>
<#include "user_author"> <#include "user_author">
<@user_author user=author/> <@user_author user=author/>
@@ -41,8 +43,11 @@
} }
</#if> </#if>
], ],
"timeStamp": "${embeddedMessage.timeCreated}"
}
]
<#if useButton> <#if useButton>
"buttons": [ ,"buttons": [
{ {
"label": "<@safe_include "message_embed_button_delete"/>", "label": "<@safe_include "message_embed_button_delete"/>",
"id": "${buttonConfigModel.buttonId}", "id": "${buttonConfigModel.buttonId}",
@@ -51,15 +56,12 @@
"persistCallback": false "persistCallback": false
} }
} }
], ]
</#if> </#if>
<#if mentionsReferencedMessage?has_content> <#if referencedMessageId?has_content && mentionsReferencedMessage?has_content>
"metaConfig": { ,"referencedMessageId": "${referencedMessageId?c}",
"messageConfig": {
"mentionsReferencedMessage": ${mentionsReferencedMessage?string('true', 'false')} "mentionsReferencedMessage": ${mentionsReferencedMessage?string('true', 'false')}
}, }
</#if> </#if>
"timeStamp": "${embeddedMessage.timeCreated}"
<#if referencedMessageId?has_content>
,"referencedMessageId": "${referencedMessageId?c}"
</#if>
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"imageUrl": "${imageUrl}", "imageUrl": "${imageUrl}",
<#include "abstracto_color"/>, <#include "abstracto_color"/>,
"fields": [ "fields": [
@@ -10,4 +12,6 @@
"footer": { "footer": {
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}" "text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
} }
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
"description": "<@safe_include "messageDeleted_description_text"/>", "description": "<@safe_include "messageDeleted_description_text"/>",
@@ -13,4 +15,6 @@
"value": "[${channel.name?json_string}](${cachedMessage.messageUrl})" "value": "[${channel.name?json_string}](${cachedMessage.messageUrl})"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"imageUrl": "${imageUrl}", "imageUrl": "${imageUrl}",
<#include "abstracto_color"/>, <#include "abstracto_color"/>,
"description": "<@safe_include "messageEdited_attachment_removed_description"/>", "description": "<@safe_include "messageEdited_attachment_removed_description"/>",
@@ -11,4 +13,6 @@
"footer": { "footer": {
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}" "text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
} }
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "abstracto_color"/>, <#include "abstracto_color"/>,
@@ -17,4 +19,6 @@
"value": "[${messageChannel.name?json_string}](${messageBefore.messageUrl})" "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> "embeds": [
{
<#assign user>${member.user.name}#${member.user.discriminator} (${member.asMention}: ${member.id})</#assign>
"description": "<@safe_include "user_joined_text"/>", "description": "<@safe_include "user_joined_text"/>",
<#include "abstracto_color"/> <#include "abstracto_color"/>
}
]
} }

View File

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

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_detail"> <#include "user_detail">
<#include "full_member_info"> <#include "full_member_info">
"title": { "title": {
@@ -30,4 +32,6 @@
} }
</#if> </#if>
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "full_member_info"> <#include "full_member_info">
<#include "member_author"> <#include "member_author">
<@member_author member=kickedUser/>, <@member_author member=kickedUser/>,
@@ -24,4 +26,6 @@
"value": "${reason?json_string}" "value": "${reason?json_string}"
} }
] ]
}
]
} }

View File

@@ -1,5 +1,7 @@
<#include "format_instant"> <#include "format_instant">
{ {
"embeds": [
{
"author": { "author": {
<#if specifiedUser??> <#if specifiedUser??>
"name": "<@member_user_name member=specifiedUser.member/>", "name": "<@member_user_name member=specifiedUser.member/>",
@@ -19,10 +21,12 @@
}, },
<#include "success_color">, <#include "success_color">,
"description": "<#list userNotes as note><#assign note=note/> "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 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 noteText>${note.note.note?json_string}</#assign>
<#assign noteId>${note.note.userNoteId.id}</#assign> <#assign noteId>${note.note.userNoteId.id}</#assign>
<#assign date><@format_instant_date_time instant=note.note.created/></#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"/> <@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>
</#list>" </#list>"
}
]
} }

View File

@@ -2,6 +2,8 @@
<#include "format_instant"> <#include "format_instant">
<#include "member_author"> <#include "member_author">
{ {
"embeds": [
{
<@member_author member=mutedUser/>, <@member_author member=mutedUser/>,
"title": { "title": {
"title": "<@safe_include "mute_log_title"/>" "title": "<@safe_include "mute_log_title"/>"
@@ -37,4 +39,6 @@
"text": "<@safe_include "mute_log_mute_id_footer"/>" "text": "<@safe_include "mute_log_mute_id_footer"/>"
}, },
"timeStamp": "${muteDate}" "timeStamp": "${muteDate}"
}
]
} }

View File

@@ -1,6 +1,8 @@
<#include "full_member_info"> <#include "full_member_info">
<#include "format_instant"> <#include "format_instant">
{ {
"embeds": [
{
<#if unMutedUser?has_content> <#if unMutedUser?has_content>
<#include "member_author"> <#include "member_author">
<@member_author member=unMutedUser/>, <@member_author member=unMutedUser/>,
@@ -17,7 +19,6 @@
<#else> <#else>
"value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})" "value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})"
</#if> </#if>
}, },
{ {
"name": "<@safe_include "mute_log_muting_user_field_title"/>", "name": "<@safe_include "mute_log_muting_user_field_title"/>",
@@ -51,4 +52,6 @@
"text": "<@safe_include "mute_log_mute_id_footer"/>" "text": "<@safe_include "mute_log_mute_id_footer"/>"
}, },
"timeStamp": "${unmuteDate}" "timeStamp": "${unmuteDate}"
}
]
} }

View File

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

View File

@@ -1,5 +1,9 @@
{ {
"description": "<#list row as mute><#assign mute=mute><@safe_include "mutes_mute_entry"/></#list>", "embeds": [
{
"description": "<#list row as mute><#assign mute=mute><@safe_include "mutes_mute_entry"/></#list>"
}
],
"buttons": [ "buttons": [
<#include "paginator_buttons"> <#include "paginator_buttons">
] ]

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "success_color">, <#include "success_color">,
<#assign userMention><@member_user_name member=member/></#assign> <#assign userMention><@member_user_name member=member/></#assign>
"description" :"<@safe_include "myWarnings_with_decay_embed_description"/>" "description" :"<@safe_include "myWarnings_with_decay_embed_description"/>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_detail"> <#include "user_detail">
<#include "full_member_info"> <#include "full_member_info">
"title": { "title": {
@@ -15,4 +17,6 @@
"value": "<@full_member_info member=unBanningMember/>" "value": "<@full_member_info member=unBanningMember/>"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "full_member_info"> <#include "full_member_info">
<#include "member_author"> <#include "member_author">
<@member_author member=warnedMember/>, <@member_author member=warnedMember/>,
@@ -29,4 +31,6 @@
"footer": { "footer": {
"text": "<@safe_include "warn_log_warn_id_footer"/> #${warnId}" "text": "<@safe_include "warn_log_warn_id_footer"/> #${warnId}"
} }
}
]
} }

View File

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

View File

@@ -1,5 +1,9 @@
{ {
"description": "<#list row as warning><#assign warning=warning><@safe_include "warnings_warn_entry"/></#list>", "embeds": [
{
"description": "<#list row as warning><#assign warning=warning><@safe_include "warnings_warn_entry"/></#list>"
}
],
"buttons": [ "buttons": [
<#include "paginator_buttons"> <#include "paginator_buttons">
] ]

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_detail"> <#include "user_detail">
<#include "full_member_info"> <#include "full_member_info">
<#include "moderation_action_color">, <#include "moderation_action_color">,
@@ -8,4 +10,6 @@
<#assign oldPoints=oldPoints> <#assign oldPoints=oldPoints>
<#assign memberMention=member.memberMention> <#assign memberMention=member.memberMention>
"description" :"<@safe_include "infraction_level_notification_description"/>" "description" :"<@safe_include "infraction_level_notification_description"/>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
<#assign messageLink=reportedMessage.messageUrl> <#assign messageLink=reportedMessage.messageUrl>
"description" : "<@safe_include "reactionReport_notification_embed_description"/>", "description" : "<@safe_include "reactionReport_notification_embed_description"/>",
@@ -8,4 +10,6 @@
"value": "${reportCount}" "value": "${reportCount}"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_detail"> <#include "user_detail">
<#include "abstracto_color">, <#include "abstracto_color">,
"description" : "<@safe_include "userBanned_description"/>", "description" : "<@safe_include "userBanned_description"/>",
@@ -22,4 +24,6 @@
} }
</#if> </#if>
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_detail"> <#include "user_detail">
<#include "abstracto_color">, <#include "abstracto_color">,
"description" : "<@safe_include "userUnBanned_description"/>", "description" : "<@safe_include "userUnBanned_description"/>",
@@ -15,4 +17,6 @@
} }
</#if> </#if>
] ]
}
]
} }

View File

@@ -1,12 +1,16 @@
<#include "format_instant"> <#include "format_instant">
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "warnDecay_title"/>" "title": "<@safe_include "warnDecay_title"/>"
}, },
<#include "moderation_action_color">, <#include "moderation_action_color">,
"description": "<#list warnings as warning><#assign warning=warning/> "description": "<#list warnings as warning><#assign warning=warning/>
<#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention?json_string} (${warning.warnedMember.idLong?c})</#assign><#else><#assign warnedUser> ${warning.warnedUser.userId?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention?json_string} (${warning.warningMember.idLong?c})</#assign><#else><#assign warningUser>${warning.warningUser.warningUser.userId?c}</#assign></#if> <#assign warnDate><@format_instant_date_time instant=warning.warning.warnDate/></#assign><#assign warnReason=warning.warning.reason/> <@safe_include "warnDecay_log_warn_entry"/> <#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention?json_string} (${warning.warnedMember.idLong?c})</#assign><#else><#assign warnedUser> ${warning.warnedUser.userId?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention?json_string} (${warning.warningMember.idLong?c})</#assign><#else><#assign warningUser>${warning.warningUser.warningUser.userId?c}</#assign></#if> <#assign warnDate><@format_instant_date_time instant=warning.warning.warnDate/></#assign><#assign warnReason=warning.warning.reason/> <@safe_include "warnDecay_log_warn_entry"/>
<#else> <#else>
<@safe_include "warnDecay_log_no_warnings"/> <@safe_include "warnDecay_log_no_warnings"/>
</#list>" </#list>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "modmail_color">, <#include "modmail_color">,
@@ -9,4 +11,6 @@
"value": "[<@safe_include "modmail_existing_thread_link_content_display_text"/>](${threadUrl})" "value": "[<@safe_include "modmail_existing_thread_link_content_display_text"/>](${threadUrl})"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=targetMember/>, <@member_author member=targetMember/>,
"description": "<@safe_include "modmail_thread_created_description"/>", "description": "<@safe_include "modmail_thread_created_description"/>",
@@ -9,4 +11,6 @@
"value": "${createdChannel.asMention}" "value": "${createdChannel.asMention}"
} }
] ]
}
]
} }

View File

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

View File

@@ -1,12 +1,11 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
"title": { "title": {
"title": "<@safe_include "modmail_notification_message_title"/>" "title": "<@safe_include "modmail_notification_message_title"/>"
}, },
"metaConfig": {
"allowsRoleMention": true
},
<#include "modmail_color">, <#include "modmail_color">,
<#assign user><@member_user_name member=member/>(${member.user.id})</#assign> <#assign user><@member_user_name member=member/>(${member.user.id})</#assign>
"description": "<@safe_include "modmail_notification_message_description"/>", "description": "<@safe_include "modmail_notification_message_description"/>",
@@ -16,6 +15,11 @@
"value": "${channel.asMention}" "value": "${channel.asMention}"
} }
] ]
}
],
"messageConfig": {
"allowsRoleMention": true
},
<#if roles?size gt 0> <#if roles?size gt 0>
,"additionalMessage": "<#list roles as role>${role.role.asMention?json_string}<#sep>,</#list>" ,"additionalMessage": "<#list roles as role>${role.role.asMention?json_string}<#sep>,</#list>"
</#if> </#if>

View File

@@ -1,13 +1,12 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
"title": { "title": {
"title": "<@safe_include "modmail_thread_user_message_title"/>" "title": "<@safe_include "modmail_thread_user_message_title"/>"
}, },
<#include "modmail_color">, <#include "modmail_color">,
<#if subscribers?size gt 0>
"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>",
</#if>
<#if postedMessage.contentRaw?has_content> <#if postedMessage.contentRaw?has_content>
"description": "${postedMessage.contentRaw?json_string}" "description": "${postedMessage.contentRaw?json_string}"
<#else> <#else>
@@ -16,4 +15,9 @@
<#if postedMessage.attachments?size gt 0> <#if postedMessage.attachments?size gt 0>
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}" ,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
</#if> </#if>
}
]
<#if subscribers?size gt 0>
,"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>"
</#if>
} }

View File

@@ -1,5 +1,7 @@
<#include "format_instant"> <#include "format_instant">
{ {
"embeds": [
{
<#include "user_detail"> <#include "user_detail">
"title": { "title": {
"title": "<@safe_include "modmail_closing_notification_title"/>" "title": "<@safe_include "modmail_closing_notification_title"/>"
@@ -12,4 +14,6 @@
<#assign duration>${fmtDuration(duration)}</#assign> <#assign duration>${fmtDuration(duration)}</#assign>
<#assign closedSilently=silently> <#assign closedSilently=silently>
"description": "<@safe_include "close_closing_description"/>" "description": "<@safe_include "close_closing_description"/>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_author"> <#include "user_author">
<@user_author user=author/>, <@user_author user=author/>,
<#include "modmail_color"> <#include "modmail_color">
@@ -8,8 +10,10 @@
<#if message.embeds[0].image?has_content> <#if message.embeds[0].image?has_content>
,"imageUrl": "${message.embeds[0].image.proxyUrl}" ,"imageUrl": "${message.embeds[0].image.proxyUrl}"
</#if> </#if>
<#if modMailMessage.anonymous>
, "additionalMessage": "<@safe_include "modmail_anonymous_message_note"/>"
</#if>
,"timeStamp": "${message.timeCreated}" ,"timeStamp": "${message.timeCreated}"
}
]
<#if modMailMessage.anonymous>
,"additionalMessage": "<@safe_include "modmail_anonymous_message_note"/>"
</#if>
} }

View File

@@ -1,4 +1,8 @@
{ {
"embeds": [
{
<#include "modmail_color">, <#include "modmail_color">,
"description": "${closingMessage?json_string}" "description": "${closingMessage?json_string}"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=moderator/>, <@member_author member=moderator/>,
"title": { "title": {
@@ -6,9 +8,11 @@
}, },
<#include "modmail_color"> <#include "modmail_color">
<#if text?has_content> <#if text?has_content>
, "description": "${text?json_string}" ,"description": "${text?json_string}"
</#if> </#if>
<#if postedMessage.attachments?size gt 0> <#if postedMessage.attachments?size gt 0>
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}" ,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
</#if> </#if>
}
]
} }

View File

@@ -1,5 +1,7 @@
<#include "format_instant"> <#include "format_instant">
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "modmail_color">, <#include "modmail_color">,
@@ -7,4 +9,6 @@
<#assign joinDate><@format_instant_date_time instant=memberJoinDate/></#assign> <#assign joinDate><@format_instant_date_time instant=memberJoinDate/></#assign>
<#assign roles><#list member.roles as role>${role.asMention?json_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign> <#assign roles><#list member.roles as role>${role.asMention?json_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign>
"description": "<@safe_include "modmail_thread_header_embed_description"/>" "description": "<@safe_include "modmail_thread_header_embed_description"/>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "full_member_info"> <#include "full_member_info">
<#include "abstracto_color">, <#include "abstracto_color">,
<#include "member_author"> <#include "member_author">
@@ -29,4 +31,6 @@
}<#sep>,</#list> }<#sep>,</#list>
</#if> </#if>
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "full_member_info"> <#include "full_member_info">
<#include "abstracto_color">, <#include "abstracto_color">,
"description": "<@safe_include "profanityListener_report_embed_description"/>", "description": "<@safe_include "profanityListener_report_embed_description"/>",
@@ -24,4 +26,6 @@
"inline": "true" "inline": "true"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "abstracto_color">, <#include "abstracto_color">,
@@ -16,6 +18,8 @@
"name": "<@safe_include "remind_reminder_link_field_title"/>", "name": "<@safe_include "remind_reminder_link_field_title"/>",
"value": "[<@safe_include "remind_reminder_link_content_display_text"/>](${messageUrl})" "value": "[<@safe_include "remind_reminder_link_content_display_text"/>](${messageUrl})"
} }
]
}
], ],
"additionalMessage": "${member.asMention?json_string} 🔔" "additionalMessage": "${member.asMention?json_string} 🔔"
} }

View File

@@ -1,9 +1,13 @@
{ {
"embeds": [
{
<#assign id>${reminder.id}</#assign> <#assign id>${reminder.id}</#assign>
<#assign messageUrl>${message.jumpUrl}</#assign> <#assign messageUrl>${message.jumpUrl}</#assign>
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "abstracto_color">, <#include "abstracto_color">,
"description": "<@safe_include "remind_reminding_description_text"/>", "description": "<@safe_include "remind_reminding_description_text"/>"
}
],
"additionalMessage": "${member.asMention?json_string}" "additionalMessage": "${member.asMention?json_string}"
} }

View File

@@ -1,5 +1,7 @@
<#include "format_instant"> <#include "format_instant">
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<@member_author member=member/>, <@member_author member=member/>,
<#include "abstracto_color">, <#include "abstracto_color">,
@@ -23,4 +25,6 @@
</#list> </#list>
] ]
</#if> </#if>
}
]
} }

View File

@@ -1,22 +1,26 @@
{ {
<#macro userDisplay user> "embeds": [
{
<#macro userDisplay user>
${user.rank} | <@member_user_name member=user.member/> | ${user.count} ${user.rank} | <@member_user_name member=user.member/> | ${user.count}
</#macro> </#macro>
<#include "member_author"> <#include "member_author">
<#include "success_color">, <#include "success_color">,
"description": " "description": "
<@safe_include "repostLeaderboard_rank_column"/> | <@safe_include "repostLeaderboard_name_column"/> | <@safe_include "repostLeaderboard_count_column"/> <@safe_include "repostLeaderboard_rank_column"/> | <@safe_include "repostLeaderboard_name_column"/> | <@safe_include "repostLeaderboard_count_column"/>
<#list entries as user> <#list entries as user>
<@userDisplay user=user /> <@userDisplay user=user />
<#else> <#else>
<@safe_include "repostLeaderboard_no_reposts"/> <@safe_include "repostLeaderboard_no_reposts"/>
</#list> </#list>
<@safe_include "repostLeaderboard_caller_marker"/>: <@safe_include "repostLeaderboard_caller_marker"/>:
<#if userExecuting.count gt 0> <#if userExecuting.count gt 0>
<@userDisplay user=userExecuting /> <@userDisplay user=userExecuting />
<#else> <#else>
<@safe_include "repostLeaderboard_no_reposts"/> <@safe_include "repostLeaderboard_no_reposts"/>
</#if> </#if>
" "
}
]
} }

View File

@@ -1,10 +1,14 @@
{ {
"embeds": [
{
<#include "member_author"> <#include "member_author">
<#include "success_color">, <#include "success_color">,
"description": " "description": "
<#list repostCheckChannelGroups as group> <#list repostCheckChannelGroups as group>
<@safe_include "showRepostCheckChannels_response_embed_description"/>: ${group.channelGroup.channelGroup.groupName}(<#list group.channels as channel>${channel.channelRepr}<#sep>, <#else><@safe_include "showRepostCheckChannels_response_embed_no_channels"/></#list>) <@safe_include "showRepostCheckChannels_response_embed_description"/>: ${group.channelGroup.channelGroup.groupName}(<#list group.channels as channel>${channel.channelRepr}<#sep>, <#else><@safe_include "showRepostCheckChannels_response_embed_no_channels"/></#list>)
<#else><@safe_include "showRepostCheckChannels_response_embed_no_channel_groups"/></#list> <#else><@safe_include "showRepostCheckChannels_response_embed_no_channel_groups"/></#list>
" "
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "starStats_response_title"/>" "title": "<@safe_include "starStats_response_title"/>"
}, },
@@ -8,41 +10,43 @@
{ {
"name": "<@safe_include "starStats_top_starred_field_title"/>", "name": "<@safe_include "starStats_top_starred_field_title"/>",
"value": " "value": "
<#list topPosts as post><#assign post=post/> <#list topPosts as post><#assign post=post/>
<#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else> <#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else>
<@safe_include "starStats_no_starred_messages"/> <@safe_include "starStats_no_starred_messages"/>
</#list> </#list>
" "
}, },
{ {
"name": "<@safe_include "starStats_top_starrer_field_title"/>", "name": "<@safe_include "starStats_top_starrer_field_title"/>",
"value": " "value": "
<#list starGiver as starrer><#assign starrer=starrer/> <#list starGiver as starrer><#assign starrer=starrer/>
<#assign badge>${badgeEmotes[starrer?index]}</#assign><#assign count>${starrer.starCount}</#assign> <#assign badge>${badgeEmotes[starrer?index]}</#assign><#assign count>${starrer.starCount}</#assign>
<#if starrer.member?has_content> <#if starrer.member?has_content>
<#assign user>${starrer.member.asMention?json_string}</#assign> <@safe_include "starStats_starrer_entry"/> <#assign user>${starrer.member.asMention?json_string}</#assign> <@safe_include "starStats_starrer_entry"/>
<#else> <#else>
<#assign user>${starrer.user.userReference.id?c}</#assign> <@safe_include "starStats_starrer_entry_left_guild"/> <#assign user>${starrer.user.userReference.id?c}</#assign> <@safe_include "starStats_starrer_entry_left_guild"/>
</#if> </#if>
<#else> <#else>
<@safe_include "starStats_no_starred_messages"/> <@safe_include "starStats_no_starred_messages"/>
</#list> </#list>
" "
}, },
{ {
"name": "<@safe_include "starStats_top_receiver_field_title"/>", "name": "<@safe_include "starStats_top_receiver_field_title"/>",
"value": " "value": "
<#list starReceiver as starred><#assign starred=starred/> <#list starReceiver as starred><#assign starred=starred/>
<#assign badge>${badgeEmotes[starred?index]}</#assign><#assign count>${starred.starCount}</#assign> <#assign badge>${badgeEmotes[starred?index]}</#assign><#assign count>${starred.starCount}</#assign>
<#if starred.member?has_content> <#if starred.member?has_content>
<#assign user>${starred.member.asMention?json_string}</#assign> <@safe_include "starStats_receiver_entry"/> <#assign user>${starred.member.asMention?json_string}</#assign> <@safe_include "starStats_receiver_entry"/>
<#else> <#else>
<#assign user>${starred.user.userReference.id?c}</#assign> <@safe_include "starStats_receiver_entry_left_guild"/> <#assign user>${starred.user.userReference.id?c}</#assign> <@safe_include "starStats_receiver_entry_left_guild"/>
</#if> </#if>
<#else> <#else>
<@safe_include "starStats_no_starred_messages"/> <@safe_include "starStats_no_starred_messages"/>
</#list> </#list>
" "
}
]
} }
] ]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "starStats_member_response_title"/>" "title": "<@safe_include "starStats_member_response_title"/>"
}, },
@@ -11,11 +13,11 @@
{ {
"name": "<@safe_include "starStats_top_starred_field_title"/>", "name": "<@safe_include "starStats_top_starred_field_title"/>",
"value": " "value": "
<#list topPosts as post><#assign post=post/> <#list topPosts as post><#assign post=post/>
<#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else> <#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else>
<@safe_include "starStats_no_starred_messages"/> <@safe_include "starStats_no_starred_messages"/>
</#list> </#list>
" "
}, },
{ {
"name": "<@safe_include "starStats_member_received_stars_field_title"/>", "name": "<@safe_include "starStats_member_received_stars_field_title"/>",
@@ -26,4 +28,6 @@
"value": "${givenStars}" "value": "${givenStars}"
} }
] ]
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#if author??> <#if author??>
<#include "user_author"> <#include "user_author">
<@user_author user=author/> <@user_author user=author/>
@@ -8,24 +10,14 @@
<#include "abstracto_color">, <#include "abstracto_color">,
<#if message.content?has_content || message.embeds?size gt 0> <#if message.content?has_content || message.embeds?size gt 0>
"description": "${message.content?json_string} "description": "${message.content?json_string}
<#list message.embeds> <#list message.embeds>
<@safe_include "starboard_post_embed_embeds_name"/>: <@safe_include "starboard_post_embed_embeds_name"/>:
<#items as embed> <#items as embed>
<#if embed.description??> <@safe_include "starboard_post_embed_description"/>: ${embed.description?json_string} </#if> <#if embed.imageUrl?has_content> <@safe_include "starboard_post_embed_image_url"/>: ${embed.imageUrl} </#if> <#if embed.description??> <@safe_include "starboard_post_embed_description"/>: ${embed.description?json_string} </#if> <#if embed.imageUrl?has_content> <@safe_include "starboard_post_embed_image_url"/>: ${embed.imageUrl} </#if>
</#items> </#items>
</#list> </#list>
", ",
</#if> </#if>
<#assign emote>${starLevelEmote}</#assign>
<#assign count>${starCount}</#assign>
<#assign messageId>${message.messageId?c}</#assign>
<#if channel?has_content>
<#assign channelMention>${channel.asMention?json_string}</#assign>
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
<#else>
<#assign channelMention>${sourceChannelId?c}</#assign>
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
</#if>,
<#if message.attachments?size gt 0> <#if message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}", "imageUrl": "${message.attachments[0].proxyUrl}",
<#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedThumbnail??> <#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedThumbnail??>
@@ -44,4 +36,16 @@
} }
], ],
"timeStamp": "${message.timeCreated}" "timeStamp": "${message.timeCreated}"
}
],
<#assign emote>${starLevelEmote}</#assign>
<#assign count>${starCount}</#assign>
<#assign messageId>${message.messageId?c}</#assign>
<#if channel?has_content>
<#assign channelMention>${channel.asMention?json_string}</#assign>
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
<#else>
<#assign channelMention>${sourceChannelId?c}</#assign>
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
</#if>
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>" "title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>" "description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>" "title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>" "description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
}
]
} }

View File

@@ -1,6 +1,10 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "downloadEmoteStats_no_stats_available_embed_title"/>" "title": "<@safe_include "downloadEmoteStats_no_stats_available_embed_title"/>"
}, },
<#include "warning_color"> <#include "warning_color">
}
]
} }

View File

@@ -1,8 +1,8 @@
<#include "format_instant"> <#include "format_instant">
{ {
<#assign guildName=guild.name> <#assign guildName=guild.name>
<#if statsSince?has_content> <#if statsSince?has_content>
<#assign sinceDate><@format_instant_long_date instant=statsSince/></#assign> <#assign sinceDate><@format_instant_long_date instant=statsSince/></#assign>
</#if> </#if>
"additionalMessage": "<@safe_include "downloadEmoteStats_response_embed_text"/>" "additionalMessage": "<@safe_include "downloadEmoteStats_response_embed_text"/>"
} }

View File

@@ -1,4 +1,8 @@
{ {
"embeds": [
{
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#if emote?has_content>${emote.asMention}<#else>${trackedEmote.emoteName}</#if>x${result.amount?c}" "description": "<#if emote?has_content>${emote.asMention}<#else>${trackedEmote.emoteName}</#if>x${result.amount?c}"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "emoteStats_animated_emotes_title"/>" "title": "<@safe_include "emoteStats_animated_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep> </#if></#list>" "description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep> </#if></#list>"
}
]
} }

View File

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

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "emoteStats_static_emotes_title"/>" "title": "<@safe_include "emoteStats_static_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep> </#if></#list>" "description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep> </#if></#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "externalEmoteStats_animated_emotes_title"/>" "title": "<@safe_include "externalEmoteStats_animated_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>" "description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "externalEmoteStats_static_emotes_title"/>" "title": "<@safe_include "externalEmoteStats_static_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>" "description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showExternalTrackedEmote_response_embed_title"/>" "title": "<@safe_include "showExternalTrackedEmote_response_embed_title"/>"
}, },
@@ -18,4 +20,6 @@
} }
], ],
"imageUrl": "${externalUrl}" "imageUrl": "${externalUrl}"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showTrackedEmotes_animated_tracked_emotes_title"/>" "title": "<@safe_include "showTrackedEmotes_animated_tracked_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}<#if !emote.trackedEmote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#if></#list>" "description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}<#if !emote.trackedEmote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#if></#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showTrackedEmotes_deleted_animated_tracked_emotes_title"/>" "title": "<@safe_include "showTrackedEmotes_deleted_animated_tracked_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list deletedAnimatedEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>" "description": "<#list deletedAnimatedEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showTrackedEmotes_deleted_static_tracked_emotes_title"/>" "title": "<@safe_include "showTrackedEmotes_deleted_static_tracked_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list deletedStaticEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>" "description": "<#list deletedStaticEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showTrackedEmotes_external_animated_tracked_emotes_title"/>" "title": "<@safe_include "showTrackedEmotes_external_animated_tracked_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list externalAnimatedEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>" "description": "<#list externalAnimatedEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showTrackedEmotes_external_static_tracked_emotes_title"/>" "title": "<@safe_include "showTrackedEmotes_external_static_tracked_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list externalStaticEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>" "description": "<#list externalStaticEmotes as emote>`${emote.emoteName}:${emote.trackedEmoteId.id?c}`<#if !emote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#list>"
}
]
} }

View File

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

View File

@@ -1,7 +1,11 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "showTrackedEmotes_static_tracked_emotes_title"/>" "title": "<@safe_include "showTrackedEmotes_static_tracked_emotes_title"/>"
}, },
<#include "statistic_color">, <#include "statistic_color">,
"description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}<#if !emote.trackedEmote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#if></#list>" "description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}<#if !emote.trackedEmote.trackingEnabled>(<#include "showTrackedEmotes_emote_tracking_disabled">)</#if><#sep> </#if></#list>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
"title": { "title": {
"title": "<@safe_include "syncTrackedEmotes_result_response_embed_title"/>" "title": "<@safe_include "syncTrackedEmotes_result_response_embed_title"/>"
}, },
@@ -6,4 +8,6 @@
<#assign emotesAdded=emotesAdded> <#assign emotesAdded=emotesAdded>
<#assign emotesDeleted=emotesMarkedDeleted> <#assign emotesDeleted=emotesMarkedDeleted>
"description": "<@safe_include "syncTrackedEmotes_result_response_description"/>" "description": "<@safe_include "syncTrackedEmotes_result_response_description"/>"
}
]
} }

View File

@@ -1,6 +1,10 @@
{ {
"embeds": [
{
<#include "abstracto_color">, <#include "abstracto_color">,
<#assign agreements=agreements> <#assign agreements=agreements>
<#assign disagreements=disagreements> <#assign disagreements=disagreements>
"description": "<@safe_include "suggestion_info_response_embed_description"/>" "description": "<@safe_include "suggestion_info_response_embed_description"/>"
}
]
} }

View File

@@ -1,4 +1,6 @@
{ {
"embeds": [
{
<#include "user_author"> <#include "user_author">
<@user_author user=suggester/>, <@user_author user=suggester/>,
<#include "user_user_name"> <#include "user_user_name">
@@ -9,8 +11,13 @@
<#if message?? && message.attachments?size gt 0> <#if message?? && message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}", "imageUrl": "${message.attachments[0].proxyUrl}",
</#if> </#if>
"footer": {
"text": "<@safe_include "suggest_suggestion_id_footer"/>"
}
}
]
<#if useButtons> <#if useButtons>
"buttons": [ ,"buttons": [
{ {
"label": "<@safe_include "suggest_button_agree_label"/>", "label": "<@safe_include "suggest_button_agree_label"/>",
"id": "${agreeButtonModel.buttonId}", "id": "${agreeButtonModel.buttonId}",
@@ -35,9 +42,6 @@
"persistCallback": false "persistCallback": false
} }
} }
], ]
</#if> </#if>
"footer": {
"text": "<@safe_include "suggest_suggestion_id_footer"/>"
}
} }

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