CommandBot 3.0.0-rc1 - choice and boolean processing from messages

This commit is contained in:
mmacierzanka committed 2021-08-09 20:12:02 +02:00
1 parent 7fc5ae2396
commit 0a9cdb7bde
3 files changed
+32 -2

No files matched your search

+2
View File
@@ -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":