All integrations

Discord

Channel

Run your agent as a Discord bot across servers and threads.

Read the full channel docs

Install

Add this channel from eve's registry. This writes agent/channels/discord.ts:

bash
eve add channel/discord

Quick start

Create agent/channels/discord.ts:

ts
// agent/channels/discord.tsimport { discordChannel } from "eve/channels/discord";
export default discordChannel({  credentials: {    botToken: () => process.env.DISCORD_BOT_TOKEN!,    publicKey: () => process.env.DISCORD_PUBLIC_KEY!,  },});

Configure

Create a Discord application, add a bot, and set the interactions endpoint URL to the route eve serves (/eve/v1/discord). Provide the bot token and public key through environment variables. See the Discord channel docs for intents and slash-command setup.