| name | discord |
| description | Interact with Discord servers via a bot token. Use for listing guilds/channels, reading messages, and sending messages. |
Discord
Read and send messages in Discord servers using a bot token.
Environment Variables
DISCORD_BOT_TOKEN - Discord bot token
Commands
discord guilds
discord channels <guildId>
discord messages <channelId> [-l limit]
discord send <channelId> --text "Hello world"
Output Format
JSON arrays. Example for messages:
[
{
"id": "123456",
"author": { "id": "789", "username": "user1", "bot": false },
"content": "Hello!",
"timestamp": "2024-01-15T10:00:00.000000+00:00"
}
]