From cb36f4a056ed477b72aa74b5531d72d5c8814105 Mon Sep 17 00:00:00 2001 From: Hieuzest Date: Mon, 26 May 2025 17:24:57 +0800 Subject: [PATCH] feat(commands): emit `command-updated` on update --- plugins/commands/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/commands/src/index.ts b/plugins/commands/src/index.ts index 4217f3a6..06474bdf 100644 --- a/plugins/commands/src/index.ts +++ b/plugins/commands/src/index.ts @@ -323,6 +323,8 @@ export class CommandManager { if (!Object.keys(override).length) { delete this.config[command.name] } + + this.ctx.emit('command-updated', command) } this.ctx.scope.update(this.config, false) }