[AB-247] adding templates for levelRoles command

adding templates for experience role not found exception
fixing layout for help command detail response with validators
This commit is contained in:
Sheldan
2021-05-26 00:55:04 +02:00
parent f9a83d7b20
commit f0a9d235c2
9 changed files with 16 additions and 3 deletions

View File

@@ -57,7 +57,9 @@
<#if command.parameters??>
<#list command.parameters as parameter><#assign parameter=parameter>
<@safe_include "help_command_embed_command_description"/> `${parameter.name?json_string}`: <#if parameter.templated?? && parameter.templated><@safe_include "${command.name}_parameter_${parameter.name}"/><#else>${(parameter.description?json_string)!""}</#if> <@safe_include "help_command_embed_command_optional"/>
<#list parameter.validators as validator><#assign validator=validator><#assign model=validator.templateModel/><@safe_include "${validator.templateName}"/></#list>
<#list parameter.validators as validator><#assign validator=validator><#assign model=validator.templateModel/><@safe_include "${validator.templateName}"/>
</#list>
<#sep>
<#else>
<@safe_include "help_command_embed_command_no_parameters"/>

View File

@@ -0,0 +1,5 @@
{
<#include "success_color">,
"description": "<#list levelRoles as role><#if role.role??><#assign roleRepr=role.role.asMention><#else><#assign roleRepr=role.roleId?c></#if><#assign levelRepr=role.level><@safe_include "levelRoles_response_description"/><#sep>
<#else><@safe_include "levelRoles_no_roles_found"/></#list>"
}

View File

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

View File

@@ -0,0 +1 @@
Shows the role level configuration for this server

View File

@@ -0,0 +1 @@
Shows the current configuration at which level which role is awarded

View File

@@ -1,2 +1,2 @@
This causes the given role to be awarded at the given level. This will remove previously levels this role was assigned to, and also recalculate the users of the previous levels.
This will not, however, award the users the new role immediately. This needs to be done by a separate `syncExpRole`.
This causes the given role to be awarded at the given level. This will remove previous levels this role was assigned to, and also remove any role which is currently assigned to the given level.
This will not, however, award the users the new role immediately. This needs to be done by a separate `syncExpRoles`.

View File

@@ -0,0 +1 @@
Role is not part of the experience system.