mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -56,7 +56,7 @@ module.exports = class CommandDispatcher {
|
||||
finalResult[arg.key] = parsedArgs;
|
||||
break;
|
||||
}
|
||||
const parsedArg = parsed._[i].toString();
|
||||
const parsedArg = parsed._[i]?.toString();
|
||||
if (arg.isEmpty(parsedArg, msg, arg)) {
|
||||
if (arg.default) {
|
||||
finalResult[arg.key] = typeof arg.default === 'function' ? arg.default(msg) : arg.default;
|
||||
|
||||
Reference in New Issue
Block a user