Archived
CommandBot 3.0.0-rc1 - choice and boolean processing from messages
This commit is contained in:
1 parent
7fc5ae2396
commit
0a9cdb7bde
3 files changed
+32
-2
No files matched your search
@@ -106,6 +106,8 @@ export class CommandManager {
|
||||
command.parameters.map((p, i) => {
|
||||
if (!p.optional && !paramsList[i]) {
|
||||
throw new MissingParameterError(p);
|
||||
} else if (p.optional && !paramsList[i]) {
|
||||
return;
|
||||
}
|
||||
switch (p.type) {
|
||||
case "mentionable":
|
||||
|
||||
Reference in new issue
Block a user