Skip to main content

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.

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.
This provider requires your own credentials — connect your API key or OAuth account before use.
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

POST https://discord.com/api/v10/channels/123456789/messages — Free
const data = await lava.gateway('https://discord.com/api/v10/channels/123456789/messages', { body: {"content":"Hello from Lava!"} });

Get messages from a channel. Use query params: limit (1-100, default 50), before, after, around.

GET https://discord.com/api/v10/channels/123456789/messages?limit=10 — Free
const data = await lava.gateway('https://discord.com/api/v10/channels/123456789/messages?limit=10', { method: 'GET' });

List all channels in a server (guild)

GET https://discord.com/api/v10/guilds/123456789/channels — Free
const data = await lava.gateway('https://discord.com/api/v10/guilds/123456789/channels', { method: 'GET' });

List members in a server. Use query params: limit (1-1000, default 1), after (user ID for pagination).

GET https://discord.com/api/v10/guilds/123456789/members?limit=100 — Free
const data = await lava.gateway('https://discord.com/api/v10/guilds/123456789/members?limit=100', { method: 'GET' });

Get the bot user object

GET https://discord.com/api/v10/users/@me — Free
const data = await lava.gateway('https://discord.com/api/v10/users/@me', { method: 'GET' });

List servers (guilds) the bot is in

GET https://discord.com/api/v10/users/@me/guilds — Free
const data = await lava.gateway('https://discord.com/api/v10/users/@me/guilds', { method: 'GET' });

Edit a message

PATCH https://discord.com/api/v10/channels/123456789/messages/987654321 — Free
const data = await lava.gateway('https://discord.com/api/v10/channels/123456789/messages/987654321', { method: 'PATCH', body: {"content":"Edited message"} });

Delete a message

DELETE https://discord.com/api/v10/channels/123456789/messages/987654321 — Free
const data = await lava.gateway('https://discord.com/api/v10/channels/123456789/messages/987654321', { method: 'DELETE' });

Add a reaction to a message. URL-encode the emoji.

PUT https://discord.com/api/v10/channels/123456789/messages/987654321/reactions/%F0%9F%91%8D/@me — Free
const data = await lava.gateway('https://discord.com/api/v10/channels/123456789/messages/987654321/reactions/%F0%9F%91%8D/@me', { method: 'PUT' });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests