Repository navigation
feat(launch-intents): allow guildless share intents for Discord DMs and Group DMs - #67
Merged
Merged
Conversation
…nd Group DMs Share intents and ready-intent watch links now accept an empty guild id so user-installed FrameRelay commands work in private conversations. The stored channel still binds each watch link; Activity endpoints stay guild-only.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backend part of hugoalves-dev/go_discord_FrameRelay#14 (support FrameRelay in DMs and Group DMs).
Changes
POST /api/launch-intents/shareaccepts an empty or nullguildId, which is what Discord sends from DMs, Group DMs and bot DMs.channelIdis still required.POST /api/launch-intents/{id}/watchaccepts an emptyguildId. The stored intent's guild and channel must still match exactly, so a private-channel share only issues watch links in its own conversation.Tests
""andnullguild, a wrong channel, a guild mismatch and an empty channel.dotnet test tests/SonicRelay.Api.IntegrationTests: 278/278 passing.Deploy order
Deploy this before the bot PR. Until then, guildless shares get a 400 response.