This commit is contained in:
Cohee 2024-01-25 03:28:30 +02:00
parent 1ae5a8bd66
commit 6ff998816d
1 changed files with 1 additions and 1 deletions

View File

@ -1562,7 +1562,7 @@ async function executeSlashCommands(text, unescape = false) {
}
if (typeof unnamedArg === 'string' && /{{pipe}}/i.test(unnamedArg)) {
unnamedArg = unnamedArg.replace(/{{pipe}}/i, pipeResult || '');
unnamedArg = unnamedArg.replace(/{{pipe}}/i, pipeResult ?? '');
}
pipeResult = await result.command.callback(result.args, unnamedArg);