Skip to main content
Every discord.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Channels

list

channels.list List channels in a guild Risk: read
Input Output: object[]

Guilds

get

guilds.get Get info about a guild Risk: read
Input Output

list

guilds.list List guilds the bot is a member of Risk: read
Input Output: object[]

Members

get

members.get Get info about a guild member Risk: read
Input Output

list

members.list List members of a guild Risk: read
Input Output: object[]

Messages

delete

messages.delete Permanently delete a message [DESTRUCTIVE] Risk: destructive · Irreversible
Input Output

edit

messages.edit Edit an existing message Risk: write
Input
Output

get

messages.get Get a specific message Risk: read
Input Output

list

messages.list List recent messages in a channel Risk: read
Input Output: object[]

reply

messages.reply Reply to a message in a channel Risk: write
Input
Output

send

messages.send Send a message to a channel Risk: write
Input
Output

Reactions

add

reactions.add Add a reaction to a message Risk: write
Input Output

list

reactions.list List reactions on a message Risk: read
Input Output: object[]

remove

reactions.remove Remove a reaction from a message Risk: write
Input Output

Threads

create

threads.create Create a new thread in a channel Risk: write
Input Output

createFromMessage

threads.createFromMessage Create a thread from an existing message Risk: write
Input Output