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 your agent in Agent Studio
  2. In the Integrations panel, click Add Integration Config
  3. Select Discord from the integration list
  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 agent revision

Using in Your Agent

  1. In an Agent Step, attach Discord tools from the tools panel
  2. The agent uses your integration config for all Discord API calls
  3. 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