Supyagent
Cloud IntegrationsProviders

Discord

Connect Discord to your agents for interacting with servers, channels, and messages.

Discord Integration

Discord provides access to servers (guilds), channels, and messages. Your agents can read message history, post messages, and browse server information.

OAuth Setup

When you click Connect Discord on the dashboard, Supyagent requests the following scopes:

ScopeAccess
identifyRead your Discord user information
guildsView servers you are a member of
botBot access for reading/sending messages in channels

Permissions

Permission IDNameTypeDescription
discord.guilds.readRead serversreadView servers you are a member of
discord.channels.readRead channelsreadView channels in servers
discord.messages.readRead messagesreadView message history in channels
discord.messages.writeSend messageswriteSend messages to channels

Servers (Guilds)

Example Actions

List servers:

curl -X GET "https://app.supyagent.com/api/v1/discord/guilds" \
  -H "Authorization: Bearer sk_live_..."

What Agents Can Do

  • List servers the bot has been added to
  • View server details (name, member count, icon)

Channels

Example Actions

List channels in a server:

curl -X GET "https://app.supyagent.com/api/v1/discord/guilds/{guildId}/channels" \
  -H "Authorization: Bearer sk_live_..."

What Agents Can Do

  • List text, voice, and category channels
  • View channel details (name, topic, type)

Messages

Example Actions

Read recent messages:

curl -X GET "https://app.supyagent.com/api/v1/discord/channels/{channelId}/messages?limit=20" \
  -H "Authorization: Bearer sk_live_..."

Send a message:

curl -X POST "https://app.supyagent.com/api/v1/discord/channels/{channelId}/messages" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Build #247 passed all tests. Ready for deployment."
  }'

What Agents Can Do

  • Read message history in text channels
  • Send messages to any channel the bot has access to
  • View message metadata (author, timestamp, reactions)

Setup Notes

Discord integration requires adding the Supyagent bot to your Discord server:

  1. Connect Discord on the Supyagent dashboard
  2. Authorize the bot with the requested permissions
  3. The bot will appear in your server's member list
  4. Ensure the bot has access to the channels you want your agents to interact with

Bot Permissions

The bot needs the following Discord permissions in each channel:

  • Read Messages / View Channels -- for reading message history
  • Send Messages -- for posting messages
  • Read Message History -- for accessing older messages

Notes

  • Discord uses snowflake IDs for guilds, channels, and messages -- these are numeric strings
  • The bot can only access channels it has been granted permission to view
  • Rate limits: Discord allows 5 requests per second per route
  • Message content requires the Message Content privileged intent for bots in 100+ servers