fix DebugController retaining previous named and unnamed args

This commit is contained in:
LenAnderson 2024-07-24 17:22:00 -04:00
parent 8cb31d2f7b
commit 971f2cacb9

View File

@ -272,6 +272,8 @@ export class SlashCommandClosure {
for (const executor of this.executorList) {
this.onProgress?.(done, this.commandCount);
this.debugController?.setExecutor(executor);
this.debugController.namedArguments = undefined;
this.debugController.unnamedArguments = undefined;
yield executor;
/**@type {import('./SlashCommand.js').NamedArguments} */
// @ts-ignore