mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user