# Discord — bot API access for agents

> Use the Discord Bot API from an agent: read and post messages, list servers and channels, add reactions, and build an invite link.

Discord — bot API access for agents is a free AI agent skill on Agensi by Orbital Desk, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Orbital Desk](https://www.agensi.io/creators/orbital-desk)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/discord-bot-api-access-for-agents
- Tags: communication, automation

## About this skill

This skill gives an agent a presence on Discord through an official bot application: see which servers the bot is in, list channels, read recent messages, post, and react — all plain REST against `https://discord.com/api/v10`. This is the only sanctioned route; automating a personal user account (a "self-bot") violates Discord's Terms of Service and gets the account banned.

Setup is deliberate: create an application in the Discord Developer Portal, add a Bot, store the token in a local file with mode 0600 (read at runtime, never committed, logged, or pasted into chat), and enable only the privileged gateway intents you need. A server admin must open the bot's OAuth2 invite URL and pick the server — bots cannot join servers on their own or accept normal invite links.

The tooling section maps each job to its endpoint — identity, guild list, channel list, message history, post, react (with URL-encoded emoji) — plus how to build the invite URL with a sensible permissions bitfield (3072 = View Channel + Send Messages as a read/post minimum).

Operating rules cover the failure modes: a 401 means the token is wrong or revoked, while a 403 usually means the bot lacks a permission in that server — check permissions before blaming the token. On HTTP 429, wait the `retry_after` value instead of retrying immediately, disclose the bot as a bot where it interacts with people, and follow each server's own posting rules.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Discord — bot API access for agents skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Discord — bot API access for agents do?

Use the Discord Bot API from an agent: read and post messages, list servers and channels, add reactions, and build an invite link.

### Which AI agents support Discord — bot API access for agents?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Discord — bot API access for agents?

Connect your AI agent to Agensi through MCP, then ask it to use Discord — bot API access for agents on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
