openclaw - 💡(How to fix) Fix [discord] expose slashCommandDeploy mode in config (changed-only / disabled) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#75888Fetched 2026-05-02 05:28:26
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
commented ×1cross-referenced ×1

Fix Action

Workaround

  • Reduce gateway restart frequency (already done: update.auto.enabled=false, removed orphaned plugins).
  • Cannot fully eliminate without core change.

Code Example

[discord] native slash command deploy warning (not message send):
  You are being rate limited. (status=429,
  body={"message":"You are being rate limited.","retry_after":1.192,"global":false})
RAW_BUFFERClick to expand / collapse

[discord] expose slashCommandDeploy mode in config (changed-only / disabled)

Environment

  • openclaw 2026.4.29
  • Discord plugin built-in (5 accounts: secretary, hidev, hidoc, himarketer, hiplanner)

Symptoms

Every gateway restart triggers Discord slash-command redeploy, which hits 429 rate limits in clusters:

[discord] native slash command deploy warning (not message send):
  You are being rate limited. (status=429,
  body={"message":"You are being rate limited.","retry_after":1.192,"global":false})

Observed 5+ such warnings within ~30 seconds of each restart across multiple accounts. Effects:

  • Some accounts' slash-commands silently fail to register until the next restart.
  • Adds 5-15s to startup wall-clock when retries back off.
  • Compounds with auto-restart loops (when gateway is unstable, every restart redeploys).

Current behavior

  • Plugin appears to redeploy every account's slash commands unconditionally on startup.
  • No config option in openclaw.json to control this — neither agents.defaults nor channels.discord.accounts.<id> accept a deploy-mode flag.

Requested options

  1. channels.discord.slashCommandDeploy: "always" | "changed-only" | "disabled" (default changed-only)
  2. Compute a hash of locally registered command definitions and skip deploy when the hash matches the last successful deploy (persisted under ~/.openclaw-secretary/.cache/discord-slash-deploy.json keyed by accountId).
  3. When 429 hits, respect retry_after and serialize per-account deploys instead of running them concurrently across accounts.

Workaround

  • Reduce gateway restart frequency (already done: update.auto.enabled=false, removed orphaned plugins).
  • Cannot fully eliminate without core change.

Repro

  1. Configure ≥2 Discord accounts in channels.discord.accounts.
  2. Restart the gateway (systemctl --user restart openclaw-<profile>-gateway.service).
  3. Observe multiple native slash command deploy warning ... 429 lines within first 30s.

extent analysis

TL;DR

Implement a slashCommandDeploy mode in the config to control when Discord slash commands are redeployed, such as "changed-only" or "disabled", to prevent excessive redeployments and 429 rate limit errors.

Guidance

  • Add a channels.discord.slashCommandDeploy config option to control the deployment mode, with possible values "always", "changed-only", or "disabled".
  • Compute a hash of locally registered command definitions and store it in a cache file to skip redeployment when the hash matches the last successful deploy.
  • Implement a retry mechanism that respects the retry_after value and serializes per-account deploys to prevent concurrent redeployments across accounts.
  • Consider reducing gateway restart frequency as a temporary workaround to mitigate the issue.

Example

No code example is provided as it requires changes to the underlying openclaw codebase.

Notes

The proposed solution requires changes to the openclaw configuration and codebase. The exact implementation details may vary depending on the specific requirements and constraints of the project.

Recommendation

Apply a workaround by reducing gateway restart frequency and consider implementing the proposed slashCommandDeploy mode in the config to prevent excessive redeployments and 429 rate limit errors. This approach allows for a more controlled and efficient deployment of Discord slash commands.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [discord] expose slashCommandDeploy mode in config (changed-only / disabled) [1 comments, 2 participants]