fix(discord): skip disabled native command cleanup

This commit is contained in:
Vincent Koc
2026-05-03 11:02:54 -07:00
parent 5a028489b1
commit fa98d01aa1
7 changed files with 40 additions and 35 deletions

View File

@@ -622,7 +622,7 @@ Use `bindings[].match.roles` to route Discord guild members to different agents
- `commands.native` defaults to `"auto"` and is enabled for Discord.
- Per-channel override: `channels.discord.commands.native`.
- `commands.native=false` explicitly clears previously registered Discord native commands.
- `commands.native=false` skips Discord slash-command registration and cleanup during startup. Previously registered commands may remain visible in Discord until you remove them from the Discord app.
- Native command auth uses the same Discord allowlists/policies as normal message handling.
- Commands may still be visible in Discord UI for users who are not authorized; execution still enforces OpenClaw auth and returns "not authorized".