Skip to content

feat(discord): add channel response allowlist#715

Merged
bensabic merged 4 commits into
vercel:mainfrom
onmax:agent/discord-channel-allowlist
Jul 18, 2026
Merged

feat(discord): add channel response allowlist#715
bensabic merged 4 commits into
vercel:mainfrom
onmax:agent/discord-channel-allowlist

Conversation

@onmax

@onmax onmax commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an opt-in respondToChannelIds Discord 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 test
  • pnpm --filter @chat-adapter/discord typecheck
  • pnpm check
  • pnpm konsistent
  • pnpm typecheck
  • pnpm validate

Checklist

  • All commits are signed and verified
  • All commits are signed off for the DCO (git commit -s)
  • pnpm validate passes
  • Changeset added (or N/A — see CONTRIBUTING.md)
  • Documentation updated (or N/A)

Signed-off-by: onmax <maximogarciamtnez@gmail.com>
@onmax
onmax requested a review from a team as a code owner July 16, 2026 07:23
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@onmax is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

onmax and others added 3 commits July 16, 2026 14:43
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
bensabic merged commit 26c0522 into vercel:main Jul 18, 2026
12 of 14 checks passed
@onmax
onmax deleted the agent/discord-channel-allowlist branch July 18, 2026 13:00
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.

2 participants