move silencing of loud /aborts into execute function when handled

This commit is contained in:
LenAnderson
2024-05-19 07:34:09 -04:00
parent 4f5813a6ce
commit 3bd2edf4d2
2 changed files with 3 additions and 22 deletions

View File

@ -2834,6 +2834,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) {
const result = await closure.execute();
if (result.isAborted && !result.isQuietlyAborted) {
toastr.warning(result.abortReason, 'Command execution aborted');
closure.abortController.signal.isQuiet = true;
}
return result;
} catch (e) {