[AB-150] adding templates for repost check

fixing some exception messages
This commit is contained in:
Sheldan
2020-12-08 02:39:33 +01:00
parent c0151e589e
commit 9e7c071068
42 changed files with 77 additions and 5 deletions

View File

@@ -9,12 +9,11 @@
"fields": [
<#list groups as group>
{
"name": "${group.name?js_string}",
"name": "${group.name?js_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/>)",
"value": "
<#list group.channels as channel>${channel.discordChannel.asMention?js_string}<#sep>,</#list>
<#list group.channels as channel>${channel.discordChannel.asMention?js_string}<#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
"
}<#sep>,
<#else>
</#list>
]
}

View File

@@ -0,0 +1 @@
<#assign available>${model.availableGroupTypeKeys?join(", ")}</#assign><#include "channel_group_type_not_found_exception_text">

View File

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

View File

@@ -0,0 +1 @@
"description": "<@safe_include "channel_group_type_not_found_exception"/>"

View File

@@ -0,0 +1 @@
"description": "<@safe_include "channel_not_in_guild_exception"/>"

View File

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

View File

@@ -0,0 +1,10 @@
{
<#include "member_author">
<#include "success_color">,
"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>
"
}

View File

@@ -0,0 +1 @@
"description": "<@safe_include "repost_check_check_channel_not_found_exception"/>"

View File

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