discord.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Channels
list
channels.list
List channels in a guild
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
guild_id | string | Yes | — |
object[]
Output full type
Output full type
Guilds
get
guilds.get
Get info about a guild
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
guild_id | string | Yes | — |
with_counts | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
icon | string | No | — |
splash | string | No | — |
owner_id | string | Yes | — |
afk_timeout | number | Yes | — |
verification_level | number | Yes | — |
default_message_notifications | number | Yes | — |
explicit_content_filter | number | Yes | — |
roles | object[] | Yes | — |
features | string[] | Yes | — |
mfa_level | number | Yes | — |
description | string | No | — |
premium_tier | number | Yes | — |
premium_subscription_count | number | No | — |
preferred_locale | string | Yes | — |
approximate_member_count | number | No | — |
approximate_presence_count | number | No | — |
roles full type
roles full type
list
guilds.list
List guilds the bot is a member of
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
before | string | No | — |
after | string | No | — |
limit | number | No | — |
with_counts | boolean | No | — |
object[]
Output full type
Output full type
Members
get
members.get
Get info about a guild member
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
guild_id | string | Yes | — |
user_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
user | object | No | — |
nick | string | No | — |
avatar | string | No | — |
roles | string[] | Yes | — |
joined_at | string | Yes | — |
premium_since | string | No | — |
deaf | boolean | Yes | — |
mute | boolean | Yes | — |
flags | number | Yes | — |
pending | boolean | No | — |
user full type
user full type
list
members.list
List members of a guild
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
guild_id | string | Yes | — |
limit | number | No | — |
after | string | No | — |
object[]
Output full type
Output full type
Messages
delete
messages.delete
Permanently delete a message [DESTRUCTIVE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | — |
edit
messages.edit
Edit an existing message
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
content | string | No | — |
embeds | object[] | No | — |
embeds full type
embeds full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
channel_id | string | Yes | — |
author | object | Yes | — |
content | string | Yes | — |
timestamp | string | Yes | — |
edited_timestamp | string | No | — |
tts | boolean | Yes | — |
mention_everyone | boolean | Yes | — |
mentions | object[] | Yes | — |
mention_roles | string[] | Yes | — |
attachments | object[] | Yes | — |
embeds | object[] | Yes | — |
reactions | object[] | No | — |
pinned | boolean | Yes | — |
type | number | Yes | — |
flags | number | No | — |
message_reference | object | No | — |
thread | object | No | — |
nonce | string | number | No | — |
referenced_message | lazy | Yes | — |
author full type
author full type
mentions full type
mentions full type
attachments full type
attachments full type
embeds full type
embeds full type
reactions full type
reactions full type
message_reference full type
message_reference full type
thread full type
thread full type
get
messages.get
Get a specific message
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
channel_id | string | Yes | — |
author | object | Yes | — |
content | string | Yes | — |
timestamp | string | Yes | — |
edited_timestamp | string | No | — |
tts | boolean | Yes | — |
mention_everyone | boolean | Yes | — |
mentions | object[] | Yes | — |
mention_roles | string[] | Yes | — |
attachments | object[] | Yes | — |
embeds | object[] | Yes | — |
reactions | object[] | No | — |
pinned | boolean | Yes | — |
type | number | Yes | — |
flags | number | No | — |
message_reference | object | No | — |
thread | object | No | — |
nonce | string | number | No | — |
referenced_message | lazy | Yes | — |
author full type
author full type
mentions full type
mentions full type
attachments full type
attachments full type
embeds full type
embeds full type
reactions full type
reactions full type
message_reference full type
message_reference full type
thread full type
thread full type
list
messages.list
List recent messages in a channel
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
limit | number | No | — |
before | string | No | — |
after | string | No | — |
around | string | No | — |
object[]
Output full type
Output full type
reply
messages.reply
Reply to a message in a channel
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
content | string | No | — |
embeds | object[] | No | — |
fail_if_not_exists | boolean | No | — |
embeds full type
embeds full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
channel_id | string | Yes | — |
author | object | Yes | — |
content | string | Yes | — |
timestamp | string | Yes | — |
edited_timestamp | string | No | — |
tts | boolean | Yes | — |
mention_everyone | boolean | Yes | — |
mentions | object[] | Yes | — |
mention_roles | string[] | Yes | — |
attachments | object[] | Yes | — |
embeds | object[] | Yes | — |
reactions | object[] | No | — |
pinned | boolean | Yes | — |
type | number | Yes | — |
flags | number | No | — |
message_reference | object | No | — |
thread | object | No | — |
nonce | string | number | No | — |
referenced_message | lazy | Yes | — |
author full type
author full type
mentions full type
mentions full type
attachments full type
attachments full type
embeds full type
embeds full type
reactions full type
reactions full type
message_reference full type
message_reference full type
thread full type
thread full type
send
messages.send
Send a message to a channel
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
content | string | No | — |
embeds | object[] | No | — |
tts | boolean | No | — |
nonce | string | number | No | — |
embeds full type
embeds full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
channel_id | string | Yes | — |
author | object | Yes | — |
content | string | Yes | — |
timestamp | string | Yes | — |
edited_timestamp | string | No | — |
tts | boolean | Yes | — |
mention_everyone | boolean | Yes | — |
mentions | object[] | Yes | — |
mention_roles | string[] | Yes | — |
attachments | object[] | Yes | — |
embeds | object[] | Yes | — |
reactions | object[] | No | — |
pinned | boolean | Yes | — |
type | number | Yes | — |
flags | number | No | — |
message_reference | object | No | — |
thread | object | No | — |
nonce | string | number | No | — |
referenced_message | lazy | Yes | — |
author full type
author full type
mentions full type
mentions full type
attachments full type
attachments full type
embeds full type
embeds full type
reactions full type
reactions full type
message_reference full type
message_reference full type
thread full type
thread full type
Reactions
add
reactions.add
Add a reaction to a message
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
emoji | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | — |
list
reactions.list
List reactions on a message
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
emoji | string | Yes | — |
limit | number | No | — |
after | string | No | — |
object[]
Output full type
Output full type
remove
reactions.remove
Remove a reaction from a message
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
emoji | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
success | true | Yes | — |
Threads
create
threads.create
Create a new thread in a channel
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
name | string | Yes | — |
auto_archive_duration | 60 | 1440 | 4320 | 10080 | No | — |
type | number | No | — |
invitable | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | number | Yes | — |
guild_id | string | No | — |
name | string | No | — |
topic | string | No | — |
position | number | No | — |
parent_id | string | No | — |
last_message_id | string | No | — |
owner_id | string | No | — |
thread_metadata | object | No | — |
thread_metadata full type
thread_metadata full type
createFromMessage
threads.createFromMessage
Create a thread from an existing message
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | — |
message_id | string | Yes | — |
name | string | Yes | — |
auto_archive_duration | 60 | 1440 | 4320 | 10080 | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | number | Yes | — |
guild_id | string | No | — |
name | string | No | — |
topic | string | No | — |
position | number | No | — |
parent_id | string | No | — |
last_message_id | string | No | — |
owner_id | string | No | — |
thread_metadata | object | No | — |
thread_metadata full type
thread_metadata full type