This commit is contained in:
Dragon Fire
2021-06-05 21:53:29 -04:00
parent c7bb7936a1
commit b3a48fe14a
+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 === null) {
if (arg.default !== null) {
finalResult[arg.key] = typeof arg.default === 'function' ? arg.default(msg) : arg.default;
continue;
} else {