clear onProgress before closure for no progress

0d9843cdd666021c8773da7b891875c4780d044f

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/slash-commands.js+2 -2
@@ -2242,9 +2242,9 @@ async function echoCallback(args, value) {
22422242 if (args.onClick) {
22432243 if (args.onClick instanceof SlashCommandClosure) {
22442244 options.onclick = async () => {
22452245 // Execute the slash command directly, with its internal scope and everything. Clear progress at thehandler endso ifit thedoesn't maininterfere scriptwith iscommand alreadyexecution doneprogress.
2246+ args.onClick.onProgress = null;
22462247 await args.onClick.execute();
2247- await clearCommandProgress();
22482248 };
22492249 } else {
22502250 toastr.warning('Invalid onClick provided for /echo command. This is not a closure');