Communication
Discord CLI
Guilds, channels, members, webhooks via Discord REST API v10
✓ 21 tests passed
Install
$ pip install cli-anything-discord
About
Send messages, manage Discord servers (guilds), channels, roles and members. Create and use webhooks for notifications. Pure REST implementation — no heavy discord.py dependency required.
Requirements
DISCORD_BOT_TOKEN
Command Reference
| Command | Arguments | Description |
|---|---|---|
detect |
Verify Discord Bot token | |
schema |
Output full capability schema (no token needed) | |
guild list |
List all guilds Bot joined | |
guild channels |
GUILD_ID |
List guild channels |
guild members |
GUILD_ID --limit N |
List guild members |
guild roles |
GUILD_ID |
List guild roles |
message send |
CHANNEL_ID CONTENT |
Send message |
message history |
CHANNEL_ID --limit N |
Get message history |
message react |
CHANNEL_ID MESSAGE_ID EMOJI |
Add reaction |
webhook send |
WEBHOOK_URL CONTENT |
Send via webhook (no token needed) |
webhook create |
CHANNEL_ID NAME |
Create webhook |
Usage Examples
# Install
$ pip install cli-anything-discord
# Health check
$ discord-cli detect
# Get capabilities schema (Agent-ready, no token needed)
$ discord-cli schema
# Run with JSON output (for AI Agent integration)
$ discord-cli --json detect
# Example JSON response:
{"id":"1234567890","channel_id":"987654321","content":"Hello","status":"sent"}
Agent Integration
# Python — call from AI Agent
import subprocess, json
result = subprocess.run(
["discord-cli", "--json", "detect"],
capture_output=True, text=True
)
data = json.loads(result.stdout)
print(data)
# Discover all commands without credentials:
schema = subprocess.run(
["discord-cli", "schema"],
capture_output=True, text=True
)
capabilities = json.loads(schema.stdout)