This commit is contained in:
Dragon Fire
2024-04-30 00:59:17 -04:00
parent ff5c3b791a
commit 690f4c41ee
+1 -1
View File
@@ -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.map(type => type.typeID), 'or')}.`;
return `It must be a ${list(this.type.types.map(type => type.id), 'or')}.`;
}
return `It must be a ${this.typeID}.`;
}