File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818 * [ Commands with alias] ( #commands-with-alias )
1919 * [ Commands with usage info] ( #commands-with-usage-info )
2020 * [ Commands with regex validation] ( #commands-with-regex-validation )
21+ * [ Commands with multiple validations] ( #commands-with-multiple-validations )
2122 * [ Command invocation deletion] ( #command-invocation-deletion )
2223 * [ Example handling messages across multiple files] ( #example-handling-messages-across-multiple-files )
2324 * [ Case sensitivity] ( #case-sensitivity )
@@ -105,16 +106,15 @@ handler
105106 })
106107```
107108
108- ### Commands with channel validation
109- ### Also with multiple error messages
109+ ### Commands with multiple validations
110110
111111In this version, you can chain commands and give whenInvalid an object with multiple parameters.
112- They will be validate in the following order:
112+ They will be validated in the following order:
113113 1. allowedChannels
114114 2. minimumArguments
115115 3. regularExpression
116116
117- 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.
117+ 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.
118118
119119
120120``` js
You can’t perform that action at this time.
0 commit comments