[integrations] Discord Capture via slash command + message command - #472
[integrations] Discord Capture via slash command + message command#472whiscard wants to merge 1 commit into
Conversation
Discord's Interactions webhook only fires for commands, not passive channel messages, so replace the stub with a working design: a /capture slash command and a "Capture to Open Brain" message context-menu command, both handled by one Supabase Edge Function with Ed25519 signature verification and a deferred-response pattern for the 3-second ACK window.
|
Hey @whiscard — welcome to Open Brain Source! 👋 Thanks for submitting your first PR. The automated review will run shortly and check things like metadata, folder structure, and README completeness. If anything needs fixing, the review comment will tell you exactly what. Once the automated checks pass, a human admin will review for quality and clarity. Expect a response within a few days. If you have questions, check out CONTRIBUTING.md or open an issue. |
|
Heads up — the OB1 Review check is failing before it even reviews this PR's content:
This isn't specific to this PR's content — |
Summary
/capture <text>slash command and a "Capture to Open Brain" message context-menu command, both handled by one Edge Function.EdgeRuntime.waitUntilbackground processing + follow-up webhook patch, matching the embed/classify/insert pattern used by slack-capture and telegram-capture.discord_message_id; updatedmetadata.jsondescription/tags/updateddate to match.Test plan
supabase functions deploy discord-capture --no-verify-jwtsucceeds/capture some textproduces an ephemeral confirmation and athoughtsrow withmetadata.source = 'discord'thoughtsrow and dedupes on repeat usemetadata.jsonpasses the repo's schema validation gate