This commit is contained in:
Dragon Fire
2021-06-05 21:52:10 -04:00
parent 8b89475a33
commit c7bb7936a1
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = class CommandDispatcher {
}
const parsedArg = parsed._[i]?.toString();
if (arg.isEmpty(parsedArg, msg, arg)) {
if (arg.default) {
if (arg.default === null) {
finalResult[arg.key] = typeof arg.default === 'function' ? arg.default(msg) : arg.default;
continue;
} else {