[AB-215] adding server specific alias templates

This commit is contained in:
Sheldan
2021-03-28 17:07:47 +02:00
parent 99b631f960
commit 26879b7952
15 changed files with 21 additions and 0 deletions
@@ -23,6 +23,9 @@
<#if command.aliases?? && command.aliases?size gt 0> <#if command.aliases?? && command.aliases?size gt 0>
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?js_string}` <@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?js_string}`
</#if> </#if>
<#if serverSpecificAliases?size gt 0>
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?js_string}`
</#if>
<#if restricted?? && restricted> <#if restricted?? && restricted>
<@safe_include "help_command_embed_command_executable_by"/>:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention?js_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_executable_by_nobody"/></#list> </#if> <@safe_include "help_command_embed_command_executable_by"/>:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention?js_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_executable_by_nobody"/></#list> </#if>
<#if immuneRoles?? ><@safe_include "help_command_embed_command_immune"/>: <#list immuneRoles as immuneRole> ${immuneRole.asMention?js_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_immune_none"/></#list> </#if> <#if immuneRoles?? ><@safe_include "help_command_embed_command_immune"/>: <#list immuneRoles as immuneRole> ${immuneRole.asMention?js_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_immune_none"/></#list> </#if>
@@ -0,0 +1,2 @@
<#assign existingCommandName=model.existingCommand>
<#include "command_in_server_alias_already_exists_exception_text">
@@ -0,0 +1,2 @@
<#assign existingCommandName=model.existingCommand>
<#include "command_in_server_alias_hides_command_exception_text">
@@ -0,0 +1 @@
<#include "command_in_server_alias_not_exists_exists_exception">
@@ -0,0 +1 @@
Creates aliases for commands in this server
@@ -0,0 +1,3 @@
This command can be used to create aliases for specific commands, which can only be used within this server.
The alias behaves the same way as the command and it is not possible to create an alias which has the same name
as an existing command or an existing built-in alias.
@@ -0,0 +1 @@
The name of the alias. Not allowed to be the name of a command or a built-in alias.
@@ -0,0 +1 @@
The name of the command to create an alias for. Is not allowed to be another alias.
@@ -0,0 +1 @@
Deletes a server specific alias
@@ -0,0 +1 @@
This command can be used to remove an alias from the server.
@@ -0,0 +1 @@
${existingCommandName} already uses this alias.
@@ -0,0 +1 @@
${existingCommandName} already exists as command or uses this alias.