Skip to content

Fix Discord bot token configuration - #960

Merged
shanselman merged 1 commit into
mainfrom
shanselman-fix-discord-token-config
Jul 10, 2026
Merged

Fix Discord bot token configuration#960
shanselman merged 1 commit into
mainfrom
shanselman-fix-discord-token-config

Conversation

@shanselman

@shanselman shanselman commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #958

Summary

  • write the Discord inline credential to channels.discord.token using a Discord Bot Token field
  • replace webhook setup copy with Discord bot/Developer Portal guidance across all five locales
  • keep Google Chat webhook configuration unchanged and add focused regressions for the schema path and localized guidance

Validation

  • .\build.ps1 — passed; Shared, Cli, WinNodeCli, SetupEngine, and WinUI built successfully
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore — passed: 2,724; skipped: 31; failed: 0
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore — passed: 1,665; skipped: 0; failed: 0
  • focused ChannelsPageDiscordConfigContractTests — passed: 3
  • focused ChannelConfigPatchBuilderTests — passed: 22

Real behavior proof

  • Launched the current branch build with .\run-app-local.ps1 -NoBuild -Isolated -AllowNonMain; the isolated app started successfully from this worktree.
  • UI screenshot: Not verified / blocked. Computer Use approval for the isolated OpenClaw window was declined, so the Discord form could not be navigated or captured without foregrounding the app. No screenshot is claimed.
  • Regression proof directly checks that the Discord form emits channels.discord.token, rejects any return of channels.discord.webhookUrl, displays the Discord Bot Token label/placeholder/help, removes webhook guidance from every locale, and preserves channels.googlechat.webhookUrl.
  • Rubber-duck review: $env:PYTHONUTF8='1'; python .agents\skills\autoreview\scripts\autoreview --mode local — clean; no accepted/actionable findings.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@shanselman
shanselman merged commit 8a9e351 into main Jul 10, 2026
19 checks passed
@shanselman
shanselman deleted the shanselman-fix-discord-token-config branch July 10, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discord channel settings writes to .config file in incorrect format

1 participant