[AB-135] adding templates for showing the validation parameters in help text

This commit is contained in:
Sheldan
2020-10-12 11:53:48 +02:00
parent ab244aca8d
commit 4cf7fd1268
9 changed files with 11 additions and 0 deletions

View File

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

View File

@@ -0,0 +1 @@
<#assign maxValue=model.number><#include "max_integer_value_validation_description_text">

View File

@@ -0,0 +1 @@
<#assign maxLength=model.number><#include "max_string_length_validation_description_text">

View File

@@ -0,0 +1 @@
<#assign minValue=model.number><#include "min_integer_value_validation_description_text">

View File

@@ -0,0 +1 @@
<#assign minLength=model.number><#include "min_string_length_validation_description_text">