feat(discord): add channel response allowlist#715
Merged
Conversation
Signed-off-by: onmax <maximogarciamtnez@gmail.com>
Contributor
|
@onmax is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: onmax <maximogarciamtnez@gmail.com>
…ch tests - Auto-detect respondToChannelIds from DISCORD_RESPOND_TO_CHANNEL_IDS (comma-separated) - Log isChannelAllowlisted in the legacy gateway message log - Cover the legacy gateway thread branch of the channel allowlist Signed-off-by: Ben Sabic <bensabic@users.noreply.github.com>
…env spec Signed-off-by: Ben Sabic <bensabic@users.noreply.github.com>
bensabic
approved these changes
Jul 18, 2026
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.
Summary
Adds an opt-in
respondToChannelIdsDiscord adapter option. Non-bot messages in configured parent channels and their child threads are routed through mention handlers without requiring an @mention; top-level messages keep the adapter's existing automatic thread creation, and forwarded Gateway packets preserve the parent channel for thread replies.I understand this might be something you want to keep out but I find it very useful for my own "Hermes-like" agent :)
Test plan
pnpm --filter @chat-adapter/discord testpnpm --filter @chat-adapter/discord typecheckpnpm checkpnpm konsistentpnpm typecheckpnpm validateChecklist
git commit -s)pnpm validatepasses