added additional types processing

This commit is contained in:
mmacierzanka committed 2021-08-08 13:33:36 +02:00
1 parent d913985eec
commit a8fd1c2ce7
2 files changed
+8 -3

No files matched your search

+8
View File
@@ -158,6 +158,10 @@ export class CommandManager {
throw new MissingParameterError(p);
}
switch (p.type) {
case "mentionable":
case "channel":
case "role":
case "user":
case "string":
parameters.push(
new StringParameter(p, paramsList[i])
@@ -208,6 +212,10 @@ export class CommandManager {
return;
}
switch (p.type) {
case "mentionable":
case "channel":
case "role":
case "user":
case "string":
parameters.push(
new StringParameter(p, inputParam?.value)