From b3a48fe14a70ef95dea9c61a1887943205d20501 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 5 Jun 2021 21:53:29 -0400 Subject: [PATCH] Fix --- framework/Dispatcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Dispatcher.js b/framework/Dispatcher.js index cfb4a885..c925447b 100644 --- a/framework/Dispatcher.js +++ b/framework/Dispatcher.js @@ -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 {