FruxonDocs

Discord

Discord API integration for messaging, channels, and server management

The Discord integration lets your agents send messages, read channel history, and manage interactions across Discord servers.

Prerequisites

You need one of the following:

  • Discord Bot Token — Create a bot at the Discord Developer Portal. Under your application, go to Bot, copy the token, and enable the required intents (Message Content, Server Members, etc.). Add the bot to your server using the OAuth2 URL generator.
  • OAuth — For user-level access where each chat user authorizes with their own Discord account.

Setup

  1. Open Integrations from the sidebar
  2. Select Discord from the catalog
  3. Click Add Integration Config
  4. Give the config a display name (e.g., "Discord - Community Server")
  5. Choose your authentication method:
    • Bot Token — Paste your Discord bot token
    • OAuth — Click Connect to start the Discord OAuth flow
  6. Save the config

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach Discord tools from the tools panel
  4. Tools are referenced as discord.send_message, discord.list_channels, etc.

Available Tools

ToolDescriptionAction Type
send_messageSend a message to a Discord channelIrreversible
read_messagesRead messages from a Discord channelReadOnly
list_guildsList all Discord guilds (servers) the bot has access toReadOnly
list_channelsList all channels in a Discord guildReadOnly
react_to_messageAdd a reaction emoji to a messageReversible
create_threadCreate a new thread in a Discord channelReversible

On this page