Skip to content

[Fix] Use the bot's user id for guild-member permission diagnostics#432

Merged
daniel-lxs merged 1 commit into
developfrom
fix/discord-member-diagnostics-endpoint
Jul 16, 2026
Merged

[Fix] Use the bot's user id for guild-member permission diagnostics#432
daniel-lxs merged 1 commit into
developfrom
fix/discord-member-diagnostics-endpoint

Conversation

@daniel-lxs

Copy link
Copy Markdown
Member

GET /guilds/{id}/members/@me is not a Discord API route — unlike /users/@me, the guild-members endpoint takes a real user id and rejects the literal @me with 400 Invalid Form Body. Channel permission diagnostics (settings default-channel save, comms status) failed against real Discord while passing against the mock, which had implemented the non-existent route.

  • Resolve the bot identity first, then query members/{bot.id}
  • The mock now rejects @me on that route with the same 400 the real API returns — provider code can no longer pass against the mock while failing in production

Found live within minutes of dogfooding the settings flow against a real bot; verified locally against real Discord after the fix.

🤖 Generated with Claude Code

GET /guilds/{id}/members/@me is not a Discord API route: unlike
/users/@me, the guild-members endpoint takes a real user id and rejects
the literal @me with 400 Invalid Form Body. Channel permission
diagnostics (settings default-channel save, comms status) failed against
real Discord while passing against the mock, which had implemented the
non-existent route.

Resolve the bot identity first and query members/{bot.id}; the mock now
rejects @me with the same 400 the real API returns, so provider code can
no longer pass against the mock while failing in production.

Found live during real-Discord dogfooding of the settings flow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@roomote-roomote

roomote-roomote Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed 3586f9c

@daniel-lxs
daniel-lxs merged commit 5385c4a into develop Jul 16, 2026
17 checks passed
@daniel-lxs
daniel-lxs deleted the fix/discord-member-diagnostics-endpoint branch July 16, 2026 17:16
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.

1 participant