don't add args._scope etc to macros

This commit is contained in:
LenAnderson
2024-07-05 19:14:45 -04:00
parent 3144c219fa
commit 42cad6dd1a

View File

@ -1295,6 +1295,7 @@ export class QuickReply {
if (this.message?.length > 0 && this.onExecute) { if (this.message?.length > 0 && this.onExecute) {
const scope = new SlashCommandScope(); const scope = new SlashCommandScope();
for (const key of Object.keys(args)) { for (const key of Object.keys(args)) {
if (key[0] == '_') continue;
scope.setMacro(`arg::${key}`, args[key]); scope.setMacro(`arg::${key}`, args[key]);
} }
scope.setMacro('arg::*', ''); scope.setMacro('arg::*', '');