Discord Bot API for sending messages, reading channels, managing servers, and interacting with users. Uses bot tokens (not user OAuth). Add your bot to a server, then use endpoints like channels//messages to send messages, guilds//channels to list channels, and guilds//members to list members. All endpoints use the v10 REST API. 9 example endpoints available through Lava’s AI Gateway. See the Discord API docs for full documentation.Documentation Index
Fetch the complete documentation index at: https://lava.so/docs/llms.txt
Use this file to discover all available pages before exploring further.
This is a catch-all provider — any valid URL under
https://discord.com is supported. Discord REST API v10. Construct URL as https://discord.com/api/v10/{resource}. See https://discord.com/developers/docs/reference for full reference. The endpoints below are curated examples.Endpoints
Send a message to a channel
POSThttps://discord.com/api/v10/channels/123456789/messages — Free
- SDK
- cURL
Get messages from a channel. Use query params: limit (1-100, default 50), before, after, around.
GEThttps://discord.com/api/v10/channels/123456789/messages?limit=10 — Free
- SDK
- cURL
List all channels in a server (guild)
GEThttps://discord.com/api/v10/guilds/123456789/channels — Free
- SDK
- cURL
List members in a server. Use query params: limit (1-1000, default 1), after (user ID for pagination).
GEThttps://discord.com/api/v10/guilds/123456789/members?limit=100 — Free
- SDK
- cURL
Get the bot user object
GEThttps://discord.com/api/v10/users/@me — Free
- SDK
- cURL
List servers (guilds) the bot is in
GEThttps://discord.com/api/v10/users/@me/guilds — Free
- SDK
- cURL
Edit a message
PATCHhttps://discord.com/api/v10/channels/123456789/messages/987654321 — Free
- SDK
- cURL
Delete a message
DELETEhttps://discord.com/api/v10/channels/123456789/messages/987654321 — Free
- SDK
- cURL
Add a reaction to a message. URL-encode the emoji.
PUThttps://discord.com/api/v10/channels/123456789/messages/987654321/reactions/%F0%9F%91%8D/@me — Free
- SDK
- cURL
Next Steps
All Providers
Browse all supported AI providers
Forward Proxy
Learn how to construct proxy URLs and authenticate requests