fallback to empty string piped value if null or undefined

This commit is contained in:
LenAnderson
2024-04-08 19:30:11 -04:00
parent 6e35f12aca
commit d4403505b3

View File

@ -187,7 +187,7 @@ export class SlashCommandClosure {
;
}
this.scope.pipe = await executor.command.callback(args, value);
this.scope.pipe = await executor.command.callback(args, value ?? '');
}
}
/**@type {SlashCommandClosureResult} */