Use explicit unnamed argument first if exists

This commit is contained in:
Cohee 2023-11-22 00:43:33 +02:00
parent 4b78ddbc8a
commit e5f7b0b5c7
1 changed files with 1 additions and 1 deletions

View File

@ -940,7 +940,7 @@ async function executeSlashCommands(text) {
}
console.debug('Slash command executing:', result);
const unnamedArg = pipeResult || result.value;
const unnamedArg = result.value || pipeResult;
pipeResult = await result.command.callback(result.args, unnamedArg);
if (result.command.interruptsGeneration) {