From 971f2cacb99e7917163346ed1a1a02b14f249c51 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Wed, 24 Jul 2024 17:22:00 -0400 Subject: [PATCH] fix DebugController retaining previous named and unnamed args --- public/scripts/slash-commands/SlashCommandClosure.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/slash-commands/SlashCommandClosure.js b/public/scripts/slash-commands/SlashCommandClosure.js index b572a84c0..c20fb3f27 100644 --- a/public/scripts/slash-commands/SlashCommandClosure.js +++ b/public/scripts/slash-commands/SlashCommandClosure.js @@ -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