- 16 typed API operations
- 4 synced entities (
channels,guilds,members,messages) for fast.search()/.list() - 4 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Discord API key before the first call: More: API Key
pnpm corsair setup --plugin=discord --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.Provider walkthrough: Get Credentials.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List channelsQuery synced data
Search synced channels without hitting Discord.channels, guilds, members, messages. See Database for filters and operators.
Webhooks
Fires when a user invokes a slash command or context-menu action.What’s next
API reference
Every
discord.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.
Get credentials
Provider-console walkthrough for keys and OAuth apps.