Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmfranco committed Feb 5, 2020
1 parent d9a8831 commit 3bc8f10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3bc8f10

Please sign in to comment.