Skip to content

feat: send notifications to Discord and add Discord tools for agents - #1038

Merged
croffasia merged 1 commit into
mainfrom
feat/discord
Nov 29, 2026
Merged

croffasia merged 1 commit into
mainfrom
feat/discord

Conversation

@croffasia

Copy link
Copy Markdown
Owner

What

Members can get their notifications as Discord direct messages from a bot, and agents get seven Discord tools: send a message to a channel, a thread or a person, list servers, list channels and threads, read messages with their reactions, start a thread or a forum post, add a reaction, and find a member.

The instance application is set up in god mode, and a workspace owner can send through an application of their own. A member connects their Discord account with Discord sign-in and picks the events in their notification settings. The Slack and Discord tools are listed in catalog sections, like the other integrations.

Why

Teams that work in Discord get notifications and agent tools there, as teams on Slack already do.

How to test

  1. Create an application at discord.com/developers/applications. On OAuth2, add the redirect <APP_URL>/discord/connect. Add the bot to a server you are in.
  2. In god mode, open Discord, paste the bot token and the client secret, turn on Enabled and save. A wrong token or secret is refused on save.
  3. In account settings → Notifications, connect Discord and turn on a few events. Have another member assign you an issue or mention you: the bot sends you a direct message.
  4. In team settings → Integrations, add a Discord credential with the bot token and a default channel id. A channel the bot cannot see fails the check. Give an agent the Discord tools and ask it to post, read, reply in a thread and react.

The migration 0208_discord_notifications adds three tables and a discord_events column to both notification preference tables, and allows the discord delivery channel.

Checklist

  • bun run typecheck passes
  • bun run lint and bun run format:check pass
  • Developed with an AI agent: tidy, code-review and security-audit from .agents/skills/ ran on the new code
  • Tests added or updated for the changed behaviour
  • Database schema changed: migration generated with bun run db:generate and committed
  • New environment variables documented in .env.example
  • Docs updated (README.md or docs/). AGENTS.md changed only as docs/dev/agents-md.md allows

bun run lint passes; format:check was not run by hand, the pre-commit hook formatted the changed files. No new environment variables.

Screenshots

None.

@croffasia
croffasia merged commit a46ada2 into main Nov 29, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 29, 2026
@croffasia
croffasia deleted the feat/discord branch November 29, 2026 14:03
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