mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-14 19:56:30 +00:00
[AB-xxx] adding information about command availability to help output
This commit is contained in:
@@ -10,22 +10,32 @@
|
|||||||
|
|
||||||
<#if command.help??>
|
<#if command.help??>
|
||||||
<#if command.help.templated>
|
<#if command.help.templated>
|
||||||
|
<#if command.slashCommandOnly><@safe_include "help_command_embed_command_slash_command_only"/></#if>
|
||||||
|
<#if command.messageCommandOnly><@safe_include "help_command_embed_command_message_command_only"/></#if>
|
||||||
|
|
||||||
|
<#if !command.slashCommandOnly>
|
||||||
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||||
|
</#if>
|
||||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: <@safe_include "${command.name}_long_help"/>
|
**<@safe_include "help_command_embed_command_detailed_help"/>**: <@safe_include "${command.name}_long_help"/>
|
||||||
<#if command.help.hasExample>
|
<#if command.help.hasExample && !command.slashCommandOnly>
|
||||||
<@safe_include "help_command_embed_command_example"/>: <@safe_include "${command.name}_example"/>
|
<@safe_include "help_command_embed_command_example"/>: <@safe_include "${command.name}_example"/>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if command.slashCommandOnly><@safe_include "help_command_embed_command_slash_command_only"/></#if>
|
||||||
|
<#if command.messageCommandOnly><@safe_include "help_command_embed_command_message_command_only"/></#if>
|
||||||
|
|
||||||
|
<#if !command.slashCommandOnly>
|
||||||
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||||
|
</#if>
|
||||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?json_string}
|
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?json_string}
|
||||||
<#if command.help.hasExample>
|
<#if command.help.hasExample && !command.slashCommandOnly>
|
||||||
<@safe_include "help_command_embed_command_example"/>:${command.help.example?json_string}
|
<@safe_include "help_command_embed_command_example"/>:${command.help.example?json_string}
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#if command.aliases?? && command.aliases?size gt 0>
|
<#if command.aliases?? && command.aliases?size gt 0 && !command.slashCommandOnly>
|
||||||
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?json_string}`
|
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?json_string}`
|
||||||
</#if>
|
</#if>
|
||||||
<#if serverSpecificAliases?size gt 0>
|
<#if serverSpecificAliases?size gt 0 && !command.slashCommandOnly>
|
||||||
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
|
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
|
||||||
</#if>
|
</#if>
|
||||||
<#if cooldowns??>
|
<#if cooldowns??>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
This command is only available as a message command.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This command is only available as a slash command.
|
||||||
Reference in New Issue
Block a user