mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-08 00:49:26 +00:00
added templates required by assignable role places
changed the way how exceptions are templated fixed generic exception template to handle text which might break the syntax
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
|
||||
<#if command.help??>
|
||||
<#if command.help.templated>
|
||||
<#include "help_command_embed_command_usage">: `<#include "${command.name}_usage">`
|
||||
<#include "help_command_embed_command_detailed_help">: <#include "${command.name}_long_help">
|
||||
**<#include "help_command_embed_command_usage">**: `<#include "${command.name}_usage">`
|
||||
**<#include "help_command_embed_command_detailed_help">**: <#include "${command.name}_long_help">
|
||||
<#if command.help.hasExample>
|
||||
<#include "help_command_embed_command_example">: <#include "${command.name}_example">
|
||||
</#if>
|
||||
<#else>
|
||||
<#include "help_command_embed_command_usage">: `${command.help.usage}`
|
||||
<#include "help_command_embed_command_detailed_help">: ${command.help.longHelp}
|
||||
**<#include "help_command_embed_command_usage">**: `${command.help.usage}`
|
||||
**<#include "help_command_embed_command_detailed_help">**: ${command.help.longHelp}
|
||||
<#if command.help.hasExample>
|
||||
<#include "help_command_embed_command_example">:${command.help.example}
|
||||
</#if>
|
||||
@@ -35,7 +35,7 @@
|
||||
</#if>
|
||||
|
||||
</#if>
|
||||
<#include "help_command_embed_command_parameters">:
|
||||
**<#include "help_command_embed_command_parameters">**:
|
||||
<#if command.parameters??>
|
||||
<#list command.parameters as parameter>
|
||||
<#include "help_command_embed_command_description"> `${parameter.name}`: <#if parameter.templated?? && parameter.templated><#include "${command.name}_parameter_${parameter.name}"><#else>${(parameter.description)!""}</#if>
|
||||
|
||||
@@ -1 +1 @@
|
||||
The channel ${channelId} was not found in guild ${guildId}.
|
||||
The channel ${channelId} was not found.
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "command_parameter_value_wrong_type_exception_text">"
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "emote_not_available_in_server_exception_message">"
|
||||
@@ -0,0 +1 @@
|
||||
<#include "emote_not_found_in_db_exception_text">
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"author": {
|
||||
"name": "${user.member.effectiveName}",
|
||||
"avatar": "${user.member.user.effectiveAvatarUrl}"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"preventEmptyEmbed": "true",
|
||||
<#if template?has_content>
|
||||
<#if template.templateModel?has_content>
|
||||
<#assign model=template.templateModel/>
|
||||
<#assign rendered><#include "${template.templateName}"></#assign>
|
||||
${rendered?js_string}
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?js_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?js_string}"
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
"description": "<#include "role_disabled_exception_message">"
|
||||
Reference in New Issue
Block a user