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

View File

@@ -1,17 +1,21 @@
{ {
<#include "assignable_place_color">, "embeds": [
"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> <#include "assignable_place_color">,
<@safe_include "assignable_roles_config_embed_place_description"/> "description": "<#assign channelMention><#if channelDisplay??>${channelDisplay.channelMention}<#else><@safe_include "assignable_roles_config_embed_no_channel_found"/></#if></#assign>
<#assign typeDescription><@safe_include "assignable_role_place_type_description_${type}"/></#assign>
<@safe_include "assignable_roles_config_embed_place_description"/>
<@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 @@
{ {
<#include "assignable_place_color">, "embeds": [
"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> <#include "assignable_place_color">,
" "description": "<@safe_include "assignable_role_places_overview_description"/>:
<#list places as place>`<#assign place=place/><#assign placeKey=place.placeName/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
"
}
]
} }

View File

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

View File

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

View File

@@ -1,22 +1,26 @@
{ {
<#include "assignable_place_color">, "embeds": [
"description": "${placeDescription?json_string}" {
<#if roles?size gt 0> <#include "assignable_place_color">,
,"buttons": [ "description": "${placeDescription?json_string}"
<#list roles as role> }
{ ]
"label": "${role.description?json_string}", <#if roles?size gt 0>
"id": "${role.componentId}", ,"buttons": [
"buttonStyle": "secondary", <#list roles as role>
<#if role.emoteMarkDown??> {
"emoteMarkdown": "${role.emoteMarkDown?json_string}", "label": "${role.description?json_string}",
</#if> "id": "${role.componentId}",
"metaConfig": { "buttonStyle": "secondary",
"persistCallback": false <#if role.emoteMarkDown??>
} "emoteMarkdown": "${role.emoteMarkDown?json_string}",
} </#if>
<#sep>, "metaConfig": {
"persistCallback": false
}
}
<#sep>,
</#list> </#list>
] ]
</#if> </#if>
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,11 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "feature_modes_embed_title"/>" {
}, "title": {
<#include "abstracto_color">, "title": "<@safe_include "feature_modes_embed_title"/>"
"description": " },
<#include "abstracto_color">,
"description": "
<#list featureModes as featureMode> <#list featureModes as featureMode>
<#assign featureName><@safe_include "feature_${featureMode.featureConfig.feature.key}"/></#assign> <#assign featureName><@safe_include "feature_${featureMode.featureConfig.feature.key}"/></#assign>
<#assign featureKey=featureMode.featureConfig.feature.key> <#assign featureKey=featureMode.featureConfig.feature.key>
@@ -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,9 +1,11 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "features_embed_title"/>" {
}, "title": {
<#include "abstracto_color">, "title": "<@safe_include "features_embed_title"/>"
"description": " },
<#include "abstracto_color">,
"description": "
<#list features as feature> <#list features as feature>
${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${feature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${feature.featureConfig.feature.key}` ${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${feature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${feature.featureConfig.feature.key}`
</#list> </#list>
@@ -11,4 +13,6 @@ ${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${
${defaultFeature.featureFlagProperty.enabled?string('✅', '❌')} **<@safe_include "feature_${defaultFeature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${defaultFeature.featureConfig.feature.key}` (<@safe_include "features_default_marker"/>) ${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,9 +1,11 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "help_command_embed_title"/>" {
}, "title": {
<#include "abstracto_color">, "title": "<@safe_include "help_command_embed_title"/>"
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}** },
<#include "abstracto_color">,
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}**
<@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?json_string} </#if> <@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?json_string} </#if>
<#if command.help??> <#if command.help??>
@@ -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 @@
{ {
"title": { "embeds": [
<#assign name=module.moduleDefinition.info.name/> {
"title": "<@safe_include "help_module_embed_title"/>" "title": {
}, <#assign name=module.moduleDefinition.info.name/>
<#include "abstracto_color">, "title": "<@safe_include "help_module_embed_title"/>"
"description": " },
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}** <#include "abstracto_color">,
<@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> "description": "
<@safe_include "help_module_embed_commands"/>: <@safe_include "help_module_embed_module_name"/>: **${name?json_string}**
<#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list> <@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>
<#if subModules?has_content && subModules?size gt 0> <@safe_include "help_module_embed_commands"/>:
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list> <#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
</#if> <#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>
"footer": { </#if>
"text": "<@safe_include "help_command_embed_hint_footer"/>" ",
} "footer": {
"text": "<@safe_include "help_command_embed_hint_footer"/>"
}
}
]
} }

View File

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

View File

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

View File

@@ -1,9 +1,11 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "posttarget_embed_title"/>" {
}, "title": {
<#include "success_color">, "title": "<@safe_include "posttarget_embed_title"/>"
"description": " },
<#include "success_color">,
"description": "
<#list postTargets as postTarget><#assign postTarget=postTarget/> <#list postTargets as postTarget><#assign postTarget=postTarget/>
<#assign postTargetName>${postTarget.postTarget.name?json_string}</#assign> <#assign postTargetName>${postTarget.postTarget.name?json_string}</#assign>
<#assign statusIndicator>${postTarget.disabled?string('❌', '✅')}</#assign> <#assign statusIndicator>${postTarget.disabled?string('❌', '✅')}</#assign>
@@ -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 @@
{ {
<#include "abstracto_color">, "embeds": [
"description": " {
<#include "abstracto_color">,
"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,6 +1,8 @@
{ {
<#include "success_color">, "embeds": [
"description": " {
<#include "success_color">,
"description": "
<#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/> <#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/>
<#assign profanityGroupName>${profanityGroup.groupName?json_string}</#assign> <#assign profanityGroupName>${profanityGroup.groupName?json_string}</#assign>
<@safe_include "showProfanityConfig_group_description"/> <@safe_include "showProfanityConfig_group_description"/>
@@ -16,4 +18,6 @@
<@safe_include "showProfanityConfig_no_profanity_groups"/> <@safe_include "showProfanityConfig_no_profanity_groups"/>
</#list> </#list>
" "
}
]
} }

View File

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

View File

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

View File

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

View File

@@ -1,20 +1,25 @@
{ {
<#include "member_author"> "embeds": [
<@member_author member=member/>, {
<#include "exception_color">, <#include "member_author">
"metaConfig" : { <@member_author member=member/>,
"preventEmptyEmbed": "true", <#include "exception_color">,
"ephemeral": true "metaConfig" : {
}, "preventEmptyEmbed": "true"
<#assign effectiveTemplate=template> },
<#if effectiveTemplate?has_content> <#if template?has_content>
<#if effectiveTemplate.templateModel?has_content> <#if template.templateModel?has_content>
<#assign model=effectiveTemplate.templateModel/> <#assign model=template.templateModel/>
"description": "<@safe_include "${effectiveTemplate.templateName}"/>" "description": "<@safe_include "${template.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 @@
{ {
<#include "abstracto_color">, "embeds": [
<#assign choice=chosenValue> {
"description": "<@safe_include "choose_response_description"/>" <#include "abstracto_color">,
<#assign choice=chosenValue>
"description": "<@safe_include "choose_response_description"/>"
}
]
} }

View File

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

View File

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

View File

@@ -1,20 +1,24 @@
{ {
<#macro userDisplay user> "embeds": [
[${user.rank}] -> <#if user.member?has_content>**<@member_user_name member=user.member/>**<#else>${user.userId?c}</#if> {
<@safe_include "leaderboard_experience_column"/>: ${user.experience} | <@safe_include "leaderboard_level_column"/>: ${user.level} | <@safe_include "leaderboard_messages_column"/>: ${user.messageCount} <#macro userDisplay user>
</#macro> [${user.rank}] -> <#if user.member?has_content>**<@member_user_name member=user.member/>**<#else>${user.userId?c}</#if>
<#include "success_color">, <@safe_include "leaderboard_experience_column"/>: ${user.experience} | <@safe_include "leaderboard_level_column"/>: ${user.level} | <@safe_include "leaderboard_messages_column"/>: ${user.messageCount}
"description": " </#macro>
<@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"/> <#include "success_color">,
<#list userExperiences as user> "description": "
<@userDisplay user=user /> <@safe_include "leaderboard_rank_column"/> | <@safe_include "leaderboard_name_column"/> | <@safe_include "leaderboard_experience_column"/> | <@safe_include "leaderboard_level_column"/> | <@safe_include "leaderboard_messages_column"/>
<#list userExperiences as user>
<@userDisplay user=user />
</#list> </#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 @@
{ {
<#include "success_color">, "embeds": [
"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>" <#include "success_color">,
"description": "<#list levelRoles as role><#if role.role??><#assign roleRepr=role.role.asMention><#else><#assign roleRepr=role.roleId?c></#if><#assign levelRepr=role.level><@safe_include "levelRoles_response_description"/><#sep>
<#else><@safe_include "levelRoles_no_roles_found"/></#list>"
}
]
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -2,39 +2,43 @@
<#include "format_instant"> <#include "format_instant">
<#include "member_author"> <#include "member_author">
{ {
<@member_author member=mutedUser/>, "embeds": [
"title": { {
"title": "<@safe_include "mute_log_title"/>" <@member_author member=mutedUser/>,
}, "title": {
<#include "moderation_action_color">, "title": "<@safe_include "mute_log_title"/>"
"fields": [ },
{ <#include "moderation_action_color">,
"name": "<@safe_include "mute_log_muted_user_field_title"/>", "fields": [
"value": "<@full_member_info member=mutedUser/>" {
}, "name": "<@safe_include "mute_log_muted_user_field_title"/>",
{ "value": "<@full_member_info member=mutedUser/>"
"name": "<@safe_include "mute_log_muting_user_field_title"/>", },
"value": "<@full_member_info member=mutingUser/>" {
}, "name": "<@safe_include "mute_log_muting_user_field_title"/>",
{ "value": "<@full_member_info member=mutingUser/>"
"name": "<@safe_include "mute_log_mute_location_field_title"/>", },
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})" {
}, "name": "<@safe_include "mute_log_mute_location_field_title"/>",
{ "value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
"name": "<@safe_include "mute_log_mute_reason_field_title"/>", },
"value": "${reason?json_string}" {
}, "name": "<@safe_include "mute_log_mute_reason_field_title"/>",
{ "value": "${reason?json_string}"
"name": "<@safe_include "mute_log_mute_duration_field_title"/>", },
"value": "${fmtDuration(muteDuration)}" {
}, "name": "<@safe_include "mute_log_mute_duration_field_title"/>",
{ "value": "${fmtDuration(muteDuration)}"
"name": "<@safe_include "mute_log_muted_until_field_title"/>", },
"value": "<@format_instant_date_time instant=muteTargetDate/>" {
} "name": "<@safe_include "mute_log_muted_until_field_title"/>",
], "value": "<@format_instant_date_time instant=muteTargetDate/>"
"footer": { }
"text": "<@safe_include "mute_log_mute_id_footer"/>" ],
}, "footer": {
"timeStamp": "${muteDate}" "text": "<@safe_include "mute_log_mute_id_footer"/>"
},
"timeStamp": "${muteDate}"
}
]
} }

View File

@@ -1,54 +1,57 @@
<#include "full_member_info"> <#include "full_member_info">
<#include "format_instant"> <#include "format_instant">
{ {
<#if unMutedUser?has_content> "embeds": [
<#include "member_author"> {
<@member_author member=unMutedUser/>, <#if unMutedUser?has_content>
</#if> <#include "member_author">
"title": { <@member_author member=unMutedUser/>,
"title": "<@safe_include "unMute_log_title"/>" </#if>
}, "title": {
<#include "moderation_action_color">, "title": "<@safe_include "unMute_log_title"/>"
"fields": [ },
{ <#include "moderation_action_color">,
"name": "<@safe_include "unMute_log_unmuted_user_field_title"/>", "fields": [
<#if unMutedUser?has_content> {
"value": "<@full_member_info member=unMutedUser/>" "name": "<@safe_include "unMute_log_unmuted_user_field_title"/>",
<#else> <#if unMutedUser?has_content>
"value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})" "value": "<@full_member_info member=unMutedUser/>"
</#if> <#else>
"value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})"
}, </#if>
{ },
"name": "<@safe_include "mute_log_muting_user_field_title"/>", {
<#if mutingUser?has_content> "name": "<@safe_include "mute_log_muting_user_field_title"/>",
"value": "<@full_member_info member=mutingUser/>" <#if mutingUser?has_content>
<#else> "value": "<@full_member_info member=mutingUser/>"
"value": "<@safe_include "user_left_server"/> (${mute.mutingUser.userReference.id?c})" <#else>
</#if> "value": "<@safe_include "user_left_server"/> (${mute.mutingUser.userReference.id?c})"
}, </#if>
<#if messageUrl??> },
{ <#if messageUrl??>
"name": "<@safe_include "mute_log_mute_location_field_title"/>", {
"value": "[Link](${messageUrl})" "name": "<@safe_include "mute_log_mute_location_field_title"/>",
}, "value": "[Link](${messageUrl})"
</#if> },
{ </#if>
"name": "<@safe_include "unMute_log_muted_since_field_title"/>", {
"value": "<@format_instant_date_time instant=mute.muteDate/>" "name": "<@safe_include "unMute_log_muted_since_field_title"/>",
}, "value": "<@format_instant_date_time instant=mute.muteDate/>"
{ },
"name": "<@safe_include "mute_log_mute_duration_field_title"/>", {
"value": "${fmtDuration(muteDuration)}" "name": "<@safe_include "mute_log_mute_duration_field_title"/>",
}, "value": "${fmtDuration(muteDuration)}"
{ },
"name": "<@safe_include "mute_log_mute_reason_field_title"/>", {
"value": "${mute.reason?json_string}" "name": "<@safe_include "mute_log_mute_reason_field_title"/>",
} "value": "${mute.reason?json_string}"
], }
"footer": { ],
<#assign muteId=mute.muteId.id/> "footer": {
"text": "<@safe_include "mute_log_mute_id_footer"/>" <#assign muteId=mute.muteId.id/>
}, "text": "<@safe_include "mute_log_mute_id_footer"/>"
"timeStamp": "${unmuteDate}" },
"timeStamp": "${unmuteDate}"
}
]
} }

View File

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

View File

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

View File

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

View File

@@ -1,18 +1,22 @@
{ {
<#include "user_detail"> "embeds": [
<#include "full_member_info"> {
"title": { <#include "user_detail">
"title": "<@safe_include "unBan_log_title"/>" <#include "full_member_info">
}, "title": {
<#include "moderation_action_color">, "title": "<@safe_include "unBan_log_title"/>"
"fields": [ },
{ <#include "moderation_action_color">,
"name": "<@safe_include "unBan_log_un_banned_user_field_title"/>", "fields": [
"value": "<@user_detail user=bannedUser/>" {
}, "name": "<@safe_include "unBan_log_un_banned_user_field_title"/>",
{ "value": "<@user_detail user=bannedUser/>"
"name": "<@safe_include "unBan_log_un_banning_user_field_title"/>", },
"value": "<@full_member_info member=unBanningMember/>" {
} "name": "<@safe_include "unBan_log_un_banning_user_field_title"/>",
] "value": "<@full_member_info member=unBanningMember/>"
}
]
}
]
} }

View File

@@ -1,32 +1,36 @@
{ {
<#include "full_member_info"> "embeds": [
<#include "member_author"> {
<@member_author member=warnedMember/>, <#include "full_member_info">
"title": { <#include "member_author">
"title": "<@safe_include "warn_log_title"/>" <@member_author member=warnedMember/>,
}, "title": {
<#include "moderation_action_color">, "title": "<@safe_include "warn_log_title"/>"
"fields": [ },
{ <#include "moderation_action_color">,
"name": "<@safe_include "warn_log_warned_user_field_title"/>", "fields": [
"value": "<@full_member_info member=warnedMember/>" {
}, "name": "<@safe_include "warn_log_warned_user_field_title"/>",
<#if member?has_content> "value": "<@full_member_info member=warnedMember/>"
{ },
"name": "<@safe_include "warn_log_warning_user_field_title"/>", <#if member?has_content>
"value": "<@full_member_info member=member/>" {
}, "name": "<@safe_include "warn_log_warning_user_field_title"/>",
</#if> "value": "<@full_member_info member=member/>"
{ },
"name": "<@safe_include "warn_log_warn_location_field_title"/>", </#if>
"value": "[${channel.name?json_string}](${message.jumpUrl})" {
}, "name": "<@safe_include "warn_log_warn_location_field_title"/>",
{ "value": "[${channel.name?json_string}](${message.jumpUrl})"
"name": "<@safe_include "warn_log_warn_reason_field_title"/>", },
"value": "${reason?json_string}" {
} "name": "<@safe_include "warn_log_warn_reason_field_title"/>",
], "value": "${reason?json_string}"
"footer": { }
"text": "<@safe_include "warn_log_warn_id_footer"/> #${warnId}" ],
} "footer": {
"text": "<@safe_include "warn_log_warn_id_footer"/> #${warnId}"
}
}
]
} }

View File

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

View File

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

View File

@@ -1,11 +1,15 @@
{ {
<#include "user_detail"> "embeds": [
<#include "full_member_info"> {
<#include "moderation_action_color">, <#include "user_detail">
<#assign newLevel=newLevel> <#include "full_member_info">
<#assign oldLevel=oldLevel> <#include "moderation_action_color">,
<#assign newPoints=newPoints> <#assign newLevel=newLevel>
<#assign oldPoints=oldPoints> <#assign oldLevel=oldLevel>
<#assign memberMention=member.memberMention> <#assign newPoints=newPoints>
"description" :"<@safe_include "infraction_level_notification_description"/>" <#assign oldPoints=oldPoints>
<#assign memberMention=member.memberMention>
"description" :"<@safe_include "infraction_level_notification_description"/>"
}
]
} }

View File

@@ -1,11 +1,15 @@
{ {
<#include "abstracto_color">, "embeds": [
<#assign messageLink=reportedMessage.messageUrl> {
"description" : "<@safe_include "reactionReport_notification_embed_description"/>", <#include "abstracto_color">,
"fields": [ <#assign messageLink=reportedMessage.messageUrl>
{ "description" : "<@safe_include "reactionReport_notification_embed_description"/>",
"name": "<@safe_include "reactionReport_notification_embed_report_counter_field_title"/>", "fields": [
"value": "${reportCount}" {
} "name": "<@safe_include "reactionReport_notification_embed_report_counter_field_title"/>",
] "value": "${reportCount}"
}
]
}
]
} }

View File

@@ -1,25 +1,29 @@
{ {
<#include "user_detail"> "embeds": [
<#include "abstracto_color">, {
"description" : "<@safe_include "userBanned_description"/>", <#include "user_detail">
"fields": [ <#include "abstracto_color">,
{ "description" : "<@safe_include "userBanned_description"/>",
"name": "<@safe_include "userBanned_field_title_banned_user"/>", "fields": [
"value": "<@user_detail user=bannedUser/>" {
} "name": "<@safe_include "userBanned_field_title_banned_user"/>",
<#if banningUser??> "value": "<@user_detail user=bannedUser/>"
, }
{ <#if banningUser??>
"name": "<@safe_include "userBanned_field_title_banning_user"/>", ,
"value": "<@user_detail user=banningUser/>" {
} "name": "<@safe_include "userBanned_field_title_banning_user"/>",
</#if> "value": "<@user_detail user=banningUser/>"
<#if reason??> }
, </#if>
{ <#if reason??>
"name": "<@safe_include "userBanned_field_title_reason"/>", ,
"value": "${reason}" {
} "name": "<@safe_include "userBanned_field_title_reason"/>",
</#if> "value": "${reason}"
] }
</#if>
]
}
]
} }

View File

@@ -1,18 +1,22 @@
{ {
<#include "user_detail"> "embeds": [
<#include "abstracto_color">, {
"description" : "<@safe_include "userUnBanned_description"/>", <#include "user_detail">
"fields": [ <#include "abstracto_color">,
{ "description" : "<@safe_include "userUnBanned_description"/>",
"name": "<@safe_include "userUnBanned_field_title_un_banned_user"/>", "fields": [
"value": "<@user_detail user=unBannedUser/>" {
} "name": "<@safe_include "userUnBanned_field_title_un_banned_user"/>",
<#if unBanningUser??> "value": "<@user_detail user=unBannedUser/>"
, }
{ <#if unBanningUser??>
"name": "<@safe_include "userUnBanned_field_title_un_banning_user"/>", ,
"value": "<@user_detail user=unBanningUser/>" {
} "name": "<@safe_include "userUnBanned_field_title_un_banning_user"/>",
</#if> "value": "<@user_detail user=unBanningUser/>"
] }
</#if>
]
}
]
} }

View File

@@ -1,12 +1,16 @@
<#include "format_instant"> <#include "format_instant">
{ {
"title": { "embeds": [
"title": "<@safe_include "warnDecay_title"/>" {
}, "title": {
<#include "moderation_action_color">, "title": "<@safe_include "warnDecay_title"/>"
"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"/> <#include "moderation_action_color">,
<#else> "description": "<#list warnings as warning><#assign warning=warning/>
<@safe_include "warnDecay_log_no_warnings"/> <#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"/>
</#list>" <#else>
<@safe_include "warnDecay_log_no_warnings"/>
</#list>"
}
]
} }

View File

@@ -1,12 +1,16 @@
{ {
<#include "member_author"> "embeds": [
<@member_author member=member/>, {
<#include "modmail_color">, <#include "member_author">
"description": "<@safe_include "modmail_thread_already_exists"/>", <@member_author member=member/>,
"fields": [ <#include "modmail_color">,
{ "description": "<@safe_include "modmail_thread_already_exists"/>",
"name": "<@safe_include "modmail_existing_thread_link_field_title"/>", "fields": [
"value": "[<@safe_include "modmail_existing_thread_link_content_display_text"/>](${threadUrl})" {
} "name": "<@safe_include "modmail_existing_thread_link_field_title"/>",
] "value": "[<@safe_include "modmail_existing_thread_link_content_display_text"/>](${threadUrl})"
}
]
}
]
} }

View File

@@ -1,12 +1,16 @@
{ {
<#include "member_author"> "embeds": [
<@member_author member=targetMember/>, {
"description": "<@safe_include "modmail_thread_created_description"/>", <#include "member_author">
<#include "modmail_color">, <@member_author member=targetMember/>,
"fields": [ "description": "<@safe_include "modmail_thread_created_description"/>",
{ <#include "modmail_color">,
"name": "<@safe_include "modmail_thread_created_link_field_title"/>", "fields": [
"value": "${createdChannel.asMention}" {
} "name": "<@safe_include "modmail_thread_created_link_field_title"/>",
] "value": "${createdChannel.asMention}"
}
]
}
]
} }

View File

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

View File

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

View File

@@ -1,19 +1,23 @@
{ {
<#include "member_author"> "embeds": [
<@member_author member=member/>, {
"title": { <#include "member_author">
"title": "<@safe_include "modmail_thread_user_message_title"/>" <@member_author member=member/>,
}, "title": {
<#include "modmail_color">, "title": "<@safe_include "modmail_thread_user_message_title"/>"
<#if subscribers?size gt 0> },
"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>", <#include "modmail_color">,
</#if> <#if postedMessage.contentRaw?has_content>
<#if postedMessage.contentRaw?has_content> "description": "${postedMessage.contentRaw?json_string}"
"description": "${postedMessage.contentRaw?json_string}" <#else>
<#else> "description": "<@safe_include "modmail_no_message_provided"/>"
"description": "<@safe_include "modmail_no_message_provided"/>" </#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> }
]
<#if subscribers?size gt 0>
,"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>"
</#if>
} }

View File

@@ -1,15 +1,19 @@
<#include "format_instant"> <#include "format_instant">
{ {
<#include "user_detail"> "embeds": [
"title": { {
"title": "<@safe_include "modmail_closing_notification_title"/>" <#include "user_detail">
}, "title": {
<#include "modmail_color">, "title": "<@safe_include "modmail_closing_notification_title"/>"
<#assign messageCount>${messageCount}</#assign> },
<#assign user><#if user??><@user_detail user=user/><#else>${userId}</#if></#assign> <#include "modmail_color">,
<#assign closingUserDescription><@member_user_name member=closingMember/> (${closingMember.idLong?c})</#assign> <#assign messageCount>${messageCount}</#assign>
<#assign startDate><@format_instant_date_time instant=startDate/></#assign> <#assign user><#if user??><@user_detail user=user/><#else>${userId}</#if></#assign>
<#assign duration>${fmtDuration(duration)}</#assign> <#assign closingUserDescription><@member_user_name member=closingMember/> (${closingMember.idLong?c})</#assign>
<#assign closedSilently=silently> <#assign startDate><@format_instant_date_time instant=startDate/></#assign>
"description": "<@safe_include "close_closing_description"/>" <#assign duration>${fmtDuration(duration)}</#assign>
<#assign closedSilently=silently>
"description": "<@safe_include "close_closing_description"/>"
}
]
} }

View File

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

View File

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

View File

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

View File

@@ -1,10 +1,14 @@
<#include "format_instant"> <#include "format_instant">
{ {
<#include "member_author"> "embeds": [
<@member_author member=member/>, {
<#include "modmail_color">, <#include "member_author">
<#assign user><@member_user_name member=member/> (${member.user.id})</#assign> <@member_author member=member/>,
<#assign joinDate><@format_instant_date_time instant=memberJoinDate/></#assign> <#include "modmail_color">,
<#assign roles><#list member.roles as role>${role.asMention?json_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign> <#assign user><@member_user_name member=member/> (${member.user.id})</#assign>
"description": "<@safe_include "modmail_thread_header_embed_description"/>" <#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>
"description": "<@safe_include "modmail_thread_header_embed_description"/>"
}
]
} }

View File

@@ -1,32 +1,36 @@
{ {
<#include "full_member_info"> "embeds": [
<#include "abstracto_color">, {
<#include "member_author"> <#include "full_member_info">
<@member_author member=member/>, <#include "abstracto_color">,
"fields": [ <#include "member_author">
{ <@member_author member=member/>,
"name": "<@safe_include "profanities_response_embed_true_profanities_field_title"/>", "fields": [
"value": "${truePositives?c}", {
"inline": "true" "name": "<@safe_include "profanities_response_embed_true_profanities_field_title"/>",
}, "value": "${truePositives?c}",
{ "inline": "true"
"name": "<@safe_include "profanities_response_embed_false_profanities_field_title"/>", },
"value": "${falsePositives?c}", {
"inline": "true" "name": "<@safe_include "profanities_response_embed_false_profanities_field_title"/>",
}<#if recentPositiveReports?size gt 0> "value": "${falsePositives?c}",
, "inline": "true"
{ }<#if recentPositiveReports?size gt 0>
"name": "", ,
"value": "", {
"inline": "true" "name": "",
}, "value": "",
<#list recentPositiveReports as report><#assign report=report> "inline": "true"
{ },
<#assign reportIndex>${report?index + 1}</#assign> <#list recentPositiveReports as report><#assign report=report>
"name": "<@safe_include "profanities_response_embed_true_profanities_report_field_value"/>", {
"value": "[<@safe_include "profanities_response_embed_true_profanities_link_field_title"/>](${report.jumpUrl})", <#assign reportIndex>${report?index + 1}</#assign>
"inline": "true" "name": "<@safe_include "profanities_response_embed_true_profanities_report_field_value"/>",
}<#sep>,</#list> "value": "[<@safe_include "profanities_response_embed_true_profanities_link_field_title"/>](${report.jumpUrl})",
</#if> "inline": "true"
] }<#sep>,</#list>
</#if>
]
}
]
} }

View File

@@ -1,27 +1,31 @@
{ {
<#include "full_member_info"> "embeds": [
<#include "abstracto_color">, {
"description": "<@safe_include "profanityListener_report_embed_description"/>", <#include "full_member_info">
"fields": [ <#include "abstracto_color">,
{ "description": "<@safe_include "profanityListener_report_embed_description"/>",
"name": "<@safe_include "profanityListener_report_embed_member_field_title"/>", "fields": [
"value": "<@full_member_info member=profaneMessage.member/>", {
"inline": "true" "name": "<@safe_include "profanityListener_report_embed_member_field_title"/>",
}, "value": "<@full_member_info member=profaneMessage.member/>",
{ "inline": "true"
"name": "<@safe_include "profanityListener_report_embed_message_link_field_title"/>", },
"value": "[${profaneMessage.channel.name?json_string}](${profaneMessage.jumpUrl?json_string})", {
"inline": "true" "name": "<@safe_include "profanityListener_report_embed_message_link_field_title"/>",
}, "value": "[${profaneMessage.channel.name?json_string}](${profaneMessage.jumpUrl?json_string})",
{ "inline": "true"
"name": "<@safe_include "profanityListener_report_embed_profanity_type_field_title"/>", },
"value": "${profanityGroupKey?json_string}", {
"inline": "true" "name": "<@safe_include "profanityListener_report_embed_profanity_type_field_title"/>",
}, "value": "${profanityGroupKey?json_string}",
{ "inline": "true"
"name": "<@safe_include "profanityListener_report_embed_message_content_field_title"/>", },
"value": "${profaneMessage.contentRaw?json_string}", {
"inline": "true" "name": "<@safe_include "profanityListener_report_embed_message_content_field_title"/>",
} "value": "${profaneMessage.contentRaw?json_string}",
] "inline": "true"
}
]
}
]
} }

View File

@@ -1,21 +1,25 @@
{ {
<#include "member_author"> "embeds": [
<@member_author member=member/>, {
<#include "abstracto_color">, <#include "member_author">
"description": "<@safe_include "remind_reminder_description"/>", <@member_author member=member/>,
"fields": [ <#include "abstracto_color">,
{ "description": "<@safe_include "remind_reminder_description"/>",
"name": "<@safe_include "remind_reminder_duration_field_title"/>", "fields": [
"value": "${fmtDuration(duration)}" {
}, "name": "<@safe_include "remind_reminder_duration_field_title"/>",
{ "value": "${fmtDuration(duration)}"
"name": "<@safe_include "remind_reminder_note_field_title"/>", },
"value": "${reminder.text?json_string}" {
}, "name": "<@safe_include "remind_reminder_note_field_title"/>",
{ "value": "${reminder.text?json_string}"
"name": "<@safe_include "remind_reminder_link_field_title"/>", },
"value": "[<@safe_include "remind_reminder_link_content_display_text"/>](${messageUrl})" {
} "name": "<@safe_include "remind_reminder_link_field_title"/>",
], "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 @@
{ {
<#assign id>${reminder.id}</#assign> "embeds": [
<#assign messageUrl>${message.jumpUrl}</#assign> {
<#include "member_author"> <#assign id>${reminder.id}</#assign>
<@member_author member=member/>, <#assign messageUrl>${message.jumpUrl}</#assign>
<#include "abstracto_color">, <#include "member_author">
"description": "<@safe_include "remind_reminding_description_text"/>", <@member_author member=member/>,
"additionalMessage": "${member.asMention?json_string}" <#include "abstracto_color">,
"description": "<@safe_include "remind_reminding_description_text"/>"
}
],
"additionalMessage": "${member.asMention?json_string}"
} }

View File

@@ -1,26 +1,30 @@
<#include "format_instant"> <#include "format_instant">
{ {
<#include "member_author"> "embeds": [
<@member_author member=member/>, {
<#include "abstracto_color">, <#include "member_author">
"title": { <@member_author member=member/>,
"title": "<@safe_include "reminders_reminders_embed_title"/>" <#include "abstracto_color">,
}, "title": {
<#if reminders?size = 0> "title": "<@safe_include "reminders_reminders_embed_title"/>"
"description": "<@safe_include "reminders_no_reminders"/>" },
<#else> <#if reminders?size = 0>
"fields": [ "description": "<@safe_include "reminders_no_reminders"/>"
<#list reminders as reminderDisplay><#assign reminderDisplay=reminderDisplay/> <#else>
{ "fields": [
<#assign id>${reminderDisplay.reminder.id}</#assign> <#list reminders as reminderDisplay><#assign reminderDisplay=reminderDisplay/>
<#assign reminderTargetDate><@format_instant_date_time instant=reminderDisplay.reminder.targetDate/></#assign> {
<#assign reminderText=reminderDisplay.reminder.text/> <#assign id>${reminderDisplay.reminder.id}</#assign>
<#assign messageLink=reminderDisplay.message.jumpUrl/> <#assign reminderTargetDate><@format_instant_date_time instant=reminderDisplay.reminder.targetDate/></#assign>
"name": "<@safe_include "reminders_reminder_field_title"/>", <#assign reminderText=reminderDisplay.reminder.text/>
"value": "<@safe_include "reminders_due_on"/>" <#assign messageLink=reminderDisplay.message.jumpUrl/>
} "name": "<@safe_include "reminders_reminder_field_title"/>",
<#sep>, "value": "<@safe_include "reminders_due_on"/>"
</#list> }
] <#sep>,
</#if> </#list>
]
</#if>
}
]
} }

View File

@@ -1,22 +1,26 @@
{ {
<#macro userDisplay user> "embeds": [
${user.rank} | <@member_user_name member=user.member/> | ${user.count} {
</#macro> <#macro userDisplay user>
<#include "member_author"> ${user.rank} | <@member_user_name member=user.member/> | ${user.count}
<#include "success_color">, </#macro>
"description": " <#include "member_author">
<@safe_include "repostLeaderboard_rank_column"/> | <@safe_include "repostLeaderboard_name_column"/> | <@safe_include "repostLeaderboard_count_column"/> <#include "success_color">,
<#list entries as user> "description": "
<@userDisplay user=user /> <@safe_include "repostLeaderboard_rank_column"/> | <@safe_include "repostLeaderboard_name_column"/> | <@safe_include "repostLeaderboard_count_column"/>
<#else> <#list entries as user>
<@safe_include "repostLeaderboard_no_reposts"/> <@userDisplay user=user />
</#list> <#else>
<@safe_include "repostLeaderboard_no_reposts"/>
</#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 @@
{ {
<#include "member_author"> "embeds": [
<#include "success_color">, {
"description": " <#include "member_author">
<#list repostCheckChannelGroups as group> <#include "success_color">,
<@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>) "description": "
<#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>)
<#else><@safe_include "showRepostCheckChannels_response_embed_no_channel_groups"/></#list> <#else><@safe_include "showRepostCheckChannels_response_embed_no_channel_groups"/></#list>
" "
}
]
} }

View File

@@ -1,48 +1,52 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "starStats_response_title"/>" {
}, "title": {
<#include "abstracto_color">, "title": "<@safe_include "starStats_response_title"/>"
"description": "<@safe_include "startStats_description"/>", },
"fields": [ <#include "abstracto_color">,
{ "description": "<@safe_include "startStats_description"/>",
"name": "<@safe_include "starStats_top_starred_field_title"/>", "fields": [
"value": " {
<#list topPosts as post><#assign post=post/> "name": "<@safe_include "starStats_top_starred_field_title"/>",
<#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else> "value": "
<@safe_include "starStats_no_starred_messages"/> <#list topPosts as post><#assign post=post/>
</#list> <#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"/>
}, </#list>
{ "
"name": "<@safe_include "starStats_top_starrer_field_title"/>", },
"value": " {
<#list starGiver as starrer><#assign starrer=starrer/> "name": "<@safe_include "starStats_top_starrer_field_title"/>",
<#assign badge>${badgeEmotes[starrer?index]}</#assign><#assign count>${starrer.starCount}</#assign> "value": "
<#if starrer.member?has_content> <#list starGiver as starrer><#assign starrer=starrer/>
<#assign user>${starrer.member.asMention?json_string}</#assign> <@safe_include "starStats_starrer_entry"/> <#assign badge>${badgeEmotes[starrer?index]}</#assign><#assign count>${starrer.starCount}</#assign>
<#else> <#if starrer.member?has_content>
<#assign user>${starrer.user.userReference.id?c}</#assign> <@safe_include "starStats_starrer_entry_left_guild"/> <#assign user>${starrer.member.asMention?json_string}</#assign> <@safe_include "starStats_starrer_entry"/>
</#if> <#else>
<#else> <#assign user>${starrer.user.userReference.id?c}</#assign> <@safe_include "starStats_starrer_entry_left_guild"/>
<@safe_include "starStats_no_starred_messages"/> </#if>
</#list> <#else>
" <@safe_include "starStats_no_starred_messages"/>
}, </#list>
{ "
"name": "<@safe_include "starStats_top_receiver_field_title"/>", },
"value": " {
<#list starReceiver as starred><#assign starred=starred/> "name": "<@safe_include "starStats_top_receiver_field_title"/>",
<#assign badge>${badgeEmotes[starred?index]}</#assign><#assign count>${starred.starCount}</#assign> "value": "
<#if starred.member?has_content> <#list starReceiver as starred><#assign starred=starred/>
<#assign user>${starred.member.asMention?json_string}</#assign> <@safe_include "starStats_receiver_entry"/> <#assign badge>${badgeEmotes[starred?index]}</#assign><#assign count>${starred.starCount}</#assign>
<#else> <#if starred.member?has_content>
<#assign user>${starred.user.userReference.id?c}</#assign> <@safe_include "starStats_receiver_entry_left_guild"/> <#assign user>${starred.member.asMention?json_string}</#assign> <@safe_include "starStats_receiver_entry"/>
</#if> <#else>
<#else> <#assign user>${starred.user.userReference.id?c}</#assign> <@safe_include "starStats_receiver_entry_left_guild"/>
<@safe_include "starStats_no_starred_messages"/> </#if>
</#list> <#else>
" <@safe_include "starStats_no_starred_messages"/>
} </#list>
] "
}
]
}
]
} }

View File

@@ -1,29 +1,33 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "starStats_member_response_title"/>" {
}, "title": {
"author": { "title": "<@safe_include "starStats_member_response_title"/>"
"name": "<@member_user_name member=member/>", },
"avatar": "${member.user.effectiveAvatarUrl}" "author": {
}, "name": "<@member_user_name member=member/>",
<#include "abstracto_color">, "avatar": "${member.user.effectiveAvatarUrl}"
"fields": [ },
{ <#include "abstracto_color">,
"name": "<@safe_include "starStats_top_starred_field_title"/>", "fields": [
"value": " {
<#list topPosts as post><#assign post=post/> "name": "<@safe_include "starStats_top_starred_field_title"/>",
<#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else> "value": "
<@safe_include "starStats_no_starred_messages"/> <#list topPosts as post><#assign post=post/>
</#list> <#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"/>
}, </#list>
{ "
"name": "<@safe_include "starStats_member_received_stars_field_title"/>", },
"value": "${receivedStars}" {
}, "name": "<@safe_include "starStats_member_received_stars_field_title"/>",
{ "value": "${receivedStars}"
"name": "<@safe_include "starStats_member_given_stars_field_title"/>", },
"value": "${givenStars}" {
} "name": "<@safe_include "starStats_member_given_stars_field_title"/>",
] "value": "${givenStars}"
}
]
}
]
} }

View File

@@ -1,47 +1,51 @@
{ {
<#if author??> "embeds": [
<#include "user_author"> {
<@user_author user=author/> <#if author??>
<#else> <#include "user_author">
<@safe_include "deleted_user_author"/> <@user_author user=author/>
</#if>, <#else>
<#include "abstracto_color">, <@safe_include "deleted_user_author"/>
<#if message.content?has_content || message.embeds?size gt 0> </#if>,
"description": "${message.content?json_string} <#include "abstracto_color">,
<#list message.embeds> <#if message.content?has_content || message.embeds?size gt 0>
<@safe_include "starboard_post_embed_embeds_name"/>: "description": "${message.content?json_string}
<#items as embed> <#list message.embeds>
<#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> <@safe_include "starboard_post_embed_embeds_name"/>:
</#items> <#items as embed>
</#list> <#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>
</#if> </#list>
<#assign emote>${starLevelEmote}</#assign> ",
<#assign count>${starCount}</#assign> </#if>
<#assign messageId>${message.messageId?c}</#assign> <#if message.attachments?size gt 0>
<#if channel?has_content> "imageUrl": "${message.attachments[0].proxyUrl}",
<#assign channelMention>${channel.asMention?json_string}</#assign> <#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedThumbnail??>
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>" "imageUrl": "${message.embeds[0].cachedThumbnail.proxyUrl}",
<#else> <#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedImageInfo??>
<#assign channelMention>${sourceChannelId?c}</#assign> "imageUrl": "${message.embeds[0].cachedImageInfo.proxyUrl}",
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>" </#if>
</#if>, "fields": [
<#if message.attachments?size gt 0> {
"imageUrl": "${message.attachments[0].proxyUrl}", "name": "<@safe_include "starboard_post_embed_original_field_title"/>"
<#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedThumbnail??> <#if channel?has_content>
"imageUrl": "${message.embeds[0].cachedThumbnail.proxyUrl}", ,"value": "[${channel.name?json_string}](${message.messageUrl})"
<#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedImageInfo??> <#else>
"imageUrl": "${message.embeds[0].cachedImageInfo.proxyUrl}", ,"value": "[${sourceChannelId?c}](${message.messageUrl})"
</#if> </#if>
"fields": [ }
{ ],
"name": "<@safe_include "starboard_post_embed_original_field_title"/>" "timeStamp": "${message.timeCreated}"
<#if channel?has_content> }
,"value": "[${channel.name?json_string}](${message.messageUrl})" ],
<#else> <#assign emote>${starLevelEmote}</#assign>
,"value": "[${sourceChannelId?c}](${message.messageUrl})" <#assign count>${starCount}</#assign>
</#if> <#assign messageId>${message.messageId?c}</#assign>
} <#if channel?has_content>
], <#assign channelMention>${channel.asMention?json_string}</#assign>
"timeStamp": "${message.timeCreated}" "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 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>" {
}, "title": {
<#include "statistic_color">, "title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>"
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>" },
<#include "statistic_color">,
"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 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>" {
}, "title": {
<#include "statistic_color">, "title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>"
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>" },
<#include "statistic_color">,
"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 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "downloadEmoteStats_no_stats_available_embed_title"/>" {
}, "title": {
<#include "warning_color"> "title": "<@safe_include "downloadEmoteStats_no_stats_available_embed_title"/>"
},
<#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 @@
{ {
<#include "statistic_color">, "embeds": [
"description": "<#if emote?has_content>${emote.asMention}<#else>${trackedEmote.emoteName}</#if>x${result.amount?c}" {
<#include "statistic_color">,
"description": "<#if emote?has_content>${emote.asMention}<#else>${trackedEmote.emoteName}</#if>x${result.amount?c}"
}
]
} }

View File

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

View File

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

View File

@@ -1,21 +1,25 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "showExternalTrackedEmote_response_embed_title"/>" {
}, "title": {
<#include "statistic_color">, "title": "<@safe_include "showExternalTrackedEmote_response_embed_title"/>"
"fields": [ },
{ <#include "statistic_color">,
"name": "<@safe_include "showExternalTrackedEmote_response_embed_emote_name_field_title"/>", "fields": [
"value": "${emoteName}" {
}, "name": "<@safe_include "showExternalTrackedEmote_response_embed_emote_name_field_title"/>",
{ "value": "${emoteName}"
"name": "<@safe_include "showExternalTrackedEmote_response_embed_emote_id_field_title"/>", },
"value": "${trackedEmoteId.id?c}" {
}, "name": "<@safe_include "showExternalTrackedEmote_response_embed_emote_id_field_title"/>",
{ "value": "${trackedEmoteId.id?c}"
"name": "<@safe_include "showExternalTrackedEmote_response_embed_link_field_title"/>", },
"value": "[<@safe_include "showExternalTrackedEmote_response_embed_emote_link_field_alt_text"/>](${externalUrl})" {
} "name": "<@safe_include "showExternalTrackedEmote_response_embed_link_field_title"/>",
], "value": "[<@safe_include "showExternalTrackedEmote_response_embed_emote_link_field_alt_text"/>](${externalUrl})"
"imageUrl": "${externalUrl}" }
],
"imageUrl": "${externalUrl}"
}
]
} }

View File

@@ -1,7 +1,11 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "showTrackedEmotes_animated_tracked_emotes_title"/>" {
}, "title": {
<#include "statistic_color">, "title": "<@safe_include "showTrackedEmotes_animated_tracked_emotes_title"/>"
"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>" },
<#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>"
}
]
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,11 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "showTrackedEmotes_static_tracked_emotes_title"/>" {
}, "title": {
<#include "statistic_color">, "title": "<@safe_include "showTrackedEmotes_static_tracked_emotes_title"/>"
"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>" },
<#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>"
}
]
} }

View File

@@ -1,9 +1,13 @@
{ {
"title": { "embeds": [
"title": "<@safe_include "syncTrackedEmotes_result_response_embed_title"/>" {
}, "title": {
<#include "statistic_color">, "title": "<@safe_include "syncTrackedEmotes_result_response_embed_title"/>"
<#assign emotesAdded=emotesAdded> },
<#assign emotesDeleted=emotesMarkedDeleted> <#include "statistic_color">,
"description": "<@safe_include "syncTrackedEmotes_result_response_description"/>" <#assign emotesAdded=emotesAdded>
<#assign emotesDeleted=emotesMarkedDeleted>
"description": "<@safe_include "syncTrackedEmotes_result_response_description"/>"
}
]
} }

View File

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

View File

@@ -1,43 +1,47 @@
{ {
<#include "user_author"> "embeds": [
<@user_author user=suggester/>, {
<#include "user_user_name"> <#include "user_author">
<#assign user><@user_user_name user=suggester/></#assign> <@user_author user=suggester/>,
<#include "abstracto_color">, <#include "user_user_name">
<#assign id>${suggestionId}</#assign> <#assign user><@user_user_name user=suggester/></#assign>
"description": "${text?json_string}", <#include "abstracto_color">,
<#if message?? && message.attachments?size gt 0> <#assign id>${suggestionId}</#assign>
"imageUrl": "${message.attachments[0].proxyUrl}", "description": "${text?json_string}",
</#if> <#if message?? && message.attachments?size gt 0>
<#if useButtons> "imageUrl": "${message.attachments[0].proxyUrl}",
"buttons": [ </#if>
{ "footer": {
"label": "<@safe_include "suggest_button_agree_label"/>", "text": "<@safe_include "suggest_suggestion_id_footer"/>"
"id": "${agreeButtonModel.buttonId}", }
"buttonStyle": "success",
"metaConfig": {
"persistCallback": false
} }
}, ]
{ <#if useButtons>
"label": "<@safe_include "suggest_button_disagree_label"/>", ,"buttons": [
"id": "${disAgreeButtonModel.buttonId}", {
"buttonStyle": "danger", "label": "<@safe_include "suggest_button_agree_label"/>",
"metaConfig": { "id": "${agreeButtonModel.buttonId}",
"persistCallback": false "buttonStyle": "success",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "suggest_button_disagree_label"/>",
"id": "${disAgreeButtonModel.buttonId}",
"buttonStyle": "danger",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "suggest_button_reset_vote_label"/>",
"id": "${removeVoteButtonModel.buttonId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
} }
}, ]
{
"label": "<@safe_include "suggest_button_reset_vote_label"/>",
"id": "${removeVoteButtonModel.buttonId}",
"buttonStyle": "secondary",
"metaConfig": {
"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