From 88f2c99f670b8e419e75a11ad7dbb304b1dbb6ca Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 00:30:08 -0400 Subject: [PATCH] Fix --- framework/UnionType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/UnionType.js b/framework/UnionType.js index 33d9ec7f..3c136155 100644 --- a/framework/UnionType.js +++ b/framework/UnionType.js @@ -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}.`); }