From dd4ab587fb1305448bd04d779957859b4ac58a71 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 30 Apr 2024 00:47:38 -0400 Subject: [PATCH] Fix --- framework/Argument.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Argument.js b/framework/Argument.js index d8c80ffd..4452f6fa 100644 --- a/framework/Argument.js +++ b/framework/Argument.js @@ -55,7 +55,7 @@ module.exports = class Argument { } else if (this.max !== null && this.min === null && this.typeID === 'string') { return `It must be at most ${this.max} characters long.`; } else if (this.type instanceof UnionType) { - return `It must be a ${list(this.type.types, 'or')}.`; + return `It must be a ${list(this.type.types.map(type => type.typeID), 'or')}.`; } return `It must be a ${this.typeID}.`; }