This commit is contained in:
Dragon Fire
2024-03-24 00:30:08 -04:00
parent 522ec7232c
commit 88f2c99f67
+1 -1
View File
@@ -27,8 +27,8 @@ module.exports = class ArgumentUnionType extends ArgumentType {
results = await Promise.all(results);
for (let i = 0; i < results.length; i++) {
if (results[i] && typeof results[i] !== 'string') return this.types[i].parse(val, msg, arg);
console.log(results[i], typeof results[i]);
}
console.log(results[i], typeof results[i]);
throw new Error(`Couldn't parse value "${val}" with union type ${this.id}.`);
}