[AB-215] adding server specific alias templates

This commit is contained in:
Sheldan
2021-03-28 17:07:33 +02:00
parent 99b631f960
commit 26879b7952
15 changed files with 21 additions and 0 deletions

View File

@@ -23,6 +23,9 @@
<#if command.aliases?? && command.aliases?size gt 0>
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?js_string}`
</#if>
<#if serverSpecificAliases?size gt 0>
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?js_string}`
</#if>
<#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>
<#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>

View File

@@ -0,0 +1,2 @@
<#assign existingCommandName=model.existingCommand>
<#include "command_in_server_alias_already_exists_exception_text">

View File

@@ -0,0 +1,2 @@
<#assign existingCommandName=model.existingCommand>
<#include "command_in_server_alias_hides_command_exception_text">

View File

@@ -0,0 +1 @@
<#include "command_in_server_alias_not_exists_exists_exception">

View File

@@ -0,0 +1 @@
Creates aliases for commands in this server

View File

@@ -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.

View File

@@ -0,0 +1 @@
The name of the alias. Not allowed to be the name of a command or a built-in alias.

View File

@@ -0,0 +1 @@
The name of the command to create an alias for. Is not allowed to be another alias.

View File

@@ -0,0 +1 @@
Deletes a server specific alias

View File

@@ -0,0 +1 @@
This command can be used to remove an alias from the server.

View File

@@ -0,0 +1 @@
${existingCommandName} already uses this alias.

View File

@@ -0,0 +1 @@
${existingCommandName} already exists as command or uses this alias.