Skip to content

fix(discord): keep slash commands deployed at the application limit - #105280

Merged
steipete merged 4 commits into
mainfrom
codex/fix-discord-command-cap-reconcile
Jul 12, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/fix-discord-command-cap-reconcile

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Discord operators with 100 registered application commands would see slash-command deployment fail during Gateway startup when OpenClaw needed to replace a stale command.

Why This Change Was Made

Reconciliation still edits retained commands and creates replacements normally. If Discord returns its documented application-command limit error, OpenClaw now uses Discord's complete command-set replacement endpoint with the desired set, avoiding both the create-before-delete deadlock and an unsafe delete gap.

User Impact

Discord slash commands remain deployable when an application is already at Discord's 100-command cap. Other creation failures still preserve the existing command set and propagate normally.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: S maintainer Maintainer-authored PR labels Jul 12, 2026
@steipete
steipete merged commit 4249cdb into main Jul 12, 2026
97 checks passed
@steipete
steipete deleted the codex/fix-discord-command-cap-reconcile branch July 12, 2026 10:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 13, 2026
…penclaw#105280)

* fix(discord): reconcile commands at the application cap

* docs(changelog): note Discord command cap fix

* chore: keep release changelog unchanged

* fix(discord): narrow command deployment errors
RomneyDa pushed a commit that referenced this pull request Aug 30, 2026
…105280)

* fix(discord): reconcile commands at the application cap

* docs(changelog): note Discord command cap fix

* chore: keep release changelog unchanged

* fix(discord): narrow command deployment errors

(cherry picked from commit 4249cdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant