agent-discordbot
Agent DiscordBot
A TypeScript CLI tool that enables AI agents and humans to interact with Discord servers using bot tokens. Unlike agent-discord which extracts user tokens from the desktop app, agent-discordbot uses standard Discord Bot tokens for server-side and CI/CD integrations.
Key Concepts
Before diving in, a few things about Discord Bot integration:
- Bot tokens — Issued from the Discord Developer Portal (discord.com/developers/applications). Bots act as the bot application's user, with their own ID and presence.
- Server (Guild) preference — A bot can be in many servers. Use
server switch <id>to set the active server, or pass--server <id>per command. - Privileged intents —
MessageContent,GuildMembers, andGuildPresencesare privileged and must be enabled in the Developer Portal before they can be used by the SDK listener. - Permission gates — Bot capabilities depend on the role's permission flags in each server. Missing permissions return 403 errors.
- Real-time events — Available via the SDK's Gateway listener, not via the CLI.
- Channel resolution — Use channel IDs (snowflake numbers) directly. The CLI does not resolve
#channel-namesyntax.
Quick Start
More from devxoul/agent-messenger
agent-slack
Interact with Slack workspaces - send messages, read channels, manage reactions
73agent-slackbot
Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions
70agent-discord
Interact with Discord servers - send messages, read channels, manage reactions
68agent-teams
Interact with Microsoft Teams - send messages, read channels, manage reactions
59agent-telegram
Interact with Telegram through TDLib - authenticate, inspect chats, and send messages
8agent-whatsapp
Interact with WhatsApp - send messages, read chats, manage conversations
6