[AB-137] changing templates to handle not existing members/channels

fixing help for createChannelGroup
fixing star stats receiver
changing formatting for long in various places
This commit is contained in:
Sheldan
2021-03-09 21:42:00 +01:00
parent 8ddf5a0ef4
commit 59e3a90049
11 changed files with 14 additions and 12 deletions

View File

@@ -11,7 +11,7 @@
{
"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>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?js_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
"
}<#sep>,
</#list>

View File

@@ -1 +1,2 @@
<#assign currentTarget><#if currentTextChannel?has_content>${currentTextChannel.asMention}<#else><@safe_include "feature_setup_post_target_no_channel_set"/></#if></#assign><@safe_include "feature_setup_posttarget_${postTargetKey}"/>
<#assign currentTarget><#if currentTextChannel??>${currentTextChannel.asMention}<#else><@safe_include "feature_setup_post_target_no_channel_set"/></#if></#assign>
<@safe_include "feature_setup_posttarget_${postTargetKey}"/>