This commit is contained in:
Cohee 2024-01-25 03:28:30 +02:00
parent 1ae5a8bd66
commit 6ff998816d

View File

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