diff --git a/public/scripts/slash-commands/SlashCommandScope.js b/public/scripts/slash-commands/SlashCommandScope.js index 7db2572c5..30e545429 100644 --- a/public/scripts/slash-commands/SlashCommandScope.js +++ b/public/scripts/slash-commands/SlashCommandScope.js @@ -38,8 +38,10 @@ export class SlashCommandScope { } - setMacro(key, value) { - this.macros[key] = value; + setMacro(key, value, overwrite = true) { + if (overwrite || !this.macroList.find(it=>it.key == key)) { + this.macros[key] = value; + } }