From 3bc8f10847a2cf30cf37d74f9f1af4c57828a310 Mon Sep 17 00:00:00 2001 From: Luiz Franco Date: Wed, 5 Feb 2020 13:46:26 -0400 Subject: [PATCH] Docs update --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aa3e043..807b7bd 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ * [Commands with alias](#commands-with-alias) * [Commands with usage info](#commands-with-usage-info) * [Commands with regex validation](#commands-with-regex-validation) + * [Commands with multiple validations](#commands-with-multiple-validations) * [Command invocation deletion](#command-invocation-deletion) * [Example handling messages across multiple files](#example-handling-messages-across-multiple-files) * [Case sensitivity](#case-sensitivity) @@ -105,16 +106,15 @@ handler }) ``` -### Commands with channel validation -### Also with multiple error messages +### Commands with multiple validations In this version, you can chain commands and give whenInvalid an object with multiple parameters. -They will be validate in the following order: +They will be validated in the following order: 1. allowedChannels 2. minimumArguments 3. regularExpression -You can also pass in a boolean when you want to send it to a user or a channel. Standard will be a reply in the channel. +You can also pass in a flag when you want to send it to a user or a channel. Standard will be a reply in the channel. ```js