[AB-200] adapting link embed template for changes

moving link embed templates to proper package
adapting module help response to new structure
This commit is contained in:
Sheldan
2021-03-16 01:17:04 +01:00
parent 7156fce15d
commit 8cb131594c
7 changed files with 6 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"title": {
<#assign name=module.moduleInterface.info.name/>
<#assign name=module.moduleDefinition.info.name/>
"title": "<@safe_include "help_module_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<@safe_include "help_module_embed_module_name"/>: **${name?js_string}**
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleInterface.info.templated?? && module.moduleInterface.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleInterface.info.description?js_string}</#if>
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?js_string}</#if>
<@safe_include "help_module_embed_commands"/>:
<#list module.commands as command>`${command.configuration.name?js_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
<#if subModules?has_content && subModules?size gt 0>

View File

@@ -1,6 +1,8 @@
{
<#include "member_author">
<@member_author member=author/>,
"author": {
"name": "${author.name?js_string}#${author.discriminator}",
"avatar": "${author.effectiveAvatarUrl}"
},
<#include "abstracto_color">,
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
"description": "${embeddedMessage.content?js_string}