Discord
Interact with Discord
Comprehensive Discord integration: messages, threads, channels, roles, members, invites, and webhooks.
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
content | string | No | No description |
serverId | string | Yes | No description |
files | file[] | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
files | file[] | Files attached to the message |
data | object | Discord message data |
↳ id | string | Message ID |
↳ content | string | Message content |
↳ channel_id | string | Channel ID where message was sent |
↳ author | object | Message author information |
↳ id | string | Author user ID |
↳ username | string | Author username |
↳ avatar | string | Author avatar hash |
↳ bot | boolean | Whether author is a bot |
↳ timestamp | string | Message timestamp |
↳ edited_timestamp | string | Message edited timestamp |
↳ embeds | array | Message embeds |
↳ attachments | array | Message attachments |
↳ mentions | array | User mentions in message |
↳ mention_roles | array | Role mentions in message |
↳ mention_everyone | boolean | Whether message mentions everyone |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
limit | number | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Container for messages data |
↳ messages | array | Array of Discord messages with full metadata |
↳ id | string | Message ID |
↳ content | string | Message content |
↳ channel_id | string | Channel ID |
↳ author | object | Message author information |
↳ id | string | Author user ID |
↳ username | string | Author username |
↳ avatar | string | Author avatar hash |
↳ bot | boolean | Whether author is a bot |
↳ timestamp | string | Message timestamp |
↳ edited_timestamp | string | Message edited timestamp |
↳ embeds | array | Message embeds |
↳ attachments | array | Message attachments |
↳ mentions | array | User mentions in message |
↳ mention_roles | array | Role mentions in message |
↳ mention_everyone | boolean | Whether message mentions everyone |
↳ channel_id | string | Channel ID |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Discord server (guild) information |
↳ id | string | Server ID |
↳ name | string | Server name |
↳ icon | string | Server icon hash |
↳ description | string | Server description |
↳ owner_id | string | Server owner user ID |
↳ roles | array | Server roles |
↳ channels | array | Server channels |
↳ member_count | number | Number of members in server |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
userId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Discord user information |
↳ id | string | User ID |
↳ username | string | Username |
↳ discriminator | string | User discriminator (4-digit number) |
↳ avatar | string | User avatar hash |
↳ bot | boolean | Whether user is a bot |
↳ system | boolean | Whether user is a system user |
↳ email | string | User email (if available) |
↳ verified | boolean | Whether user email is verified |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
messageId | string | Yes | No description |
content | string | No | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Updated Discord message data |
↳ id | string | Message ID |
↳ content | string | Updated message content |
↳ channel_id | string | Channel ID |
↳ edited_timestamp | string | Message edited timestamp |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
messageId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
messageId | string | Yes | No description |
emoji | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
messageId | string | Yes | No description |
emoji | string | Yes | No description |
userId | string | No | The user ID whose reaction to remove (omit to remove bot's own reaction), e.g., 123456789012345678 |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
messageId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
messageId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
name | string | Yes | No description |
messageId | string | No | The message ID to create a thread from (if creating from existing message), e.g., 123456789012345678 |
autoArchiveDuration | number | No | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Created thread data |
↳ id | string | Thread ID |
↳ name | string | Thread name |
↳ type | number | Thread channel type |
↳ guild_id | string | Server ID |
↳ parent_id | string | Parent channel ID |
| Parameter | Type | Required | Description |
|---|
| Parameter | Type | Description |
|---|
message | string | Status message |
files | file[] | Files attached to the message |
data | json | Response data |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
threadId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
threadId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
threadId | string | Yes | No description |
archived | boolean | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Updated thread data |
↳ id | string | Thread ID |
↳ archived | boolean | Whether thread is archived |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
name | string | Yes | No description |
type | number | No | No description |
topic | string | No | No description |
parentId | string | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Created channel data |
↳ id | string | Channel ID |
↳ name | string | Channel name |
↳ type | number | Channel type |
↳ guild_id | string | Server ID |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
name | string | No | No description |
topic | string | No | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Updated channel data |
↳ id | string | Channel ID |
↳ name | string | Channel name |
↳ type | number | Channel type |
↳ topic | string | Channel topic |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Channel data |
↳ id | string | Channel ID |
↳ name | string | Channel name |
↳ type | number | Channel type |
↳ topic | string | Channel topic |
↳ guild_id | string | Server ID |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
name | string | Yes | No description |
color | number | No | No description |
hoist | boolean | No | No description |
mentionable | boolean | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Created role data |
↳ id | string | Role ID |
↳ name | string | Role name |
↳ color | number | Role color |
↳ hoist | boolean | Whether role is hoisted |
↳ mentionable | boolean | Whether role is mentionable |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
roleId | string | Yes | No description |
name | string | No | No description |
color | number | No | No description |
hoist | boolean | No | No description |
mentionable | boolean | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Updated role data |
↳ id | string | Role ID |
↳ name | string | Role name |
↳ color | number | Role color |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
roleId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
roleId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
roleId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
reason | string | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
reason | string | No | No description |
deleteMessageDays | number | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
reason | string | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Member data |
↳ user | object | User information |
↳ id | string | User ID |
↳ username | string | Username |
↳ avatar | string | Avatar hash |
↳ nick | string | Server nickname |
↳ roles | array | Array of role IDs |
↳ joined_at | string | When the member joined |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
userId | string | Yes | No description |
nick | string | No | No description |
mute | boolean | No | No description |
deaf | boolean | No | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Updated member data |
↳ nick | string | Server nickname |
↳ mute | boolean | Voice mute status |
↳ deaf | boolean | Voice deaf status |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
maxAge | number | No | No description |
maxUses | number | No | No description |
temporary | boolean | No | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Created invite data |
↳ code | string | Invite code |
↳ url | string | Full invite URL |
↳ max_age | number | Max age in seconds |
↳ max_uses | number | Max uses |
↳ temporary | boolean | Whether temporary |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
inviteCode | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Invite data |
↳ code | string | Invite code |
↳ guild | object | Server information |
↳ channel | object | Channel information |
↳ approximate_member_count | number | Approximate member count |
↳ approximate_presence_count | number | Approximate online count |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
inviteCode | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
channelId | string | Yes | No description |
name | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Created webhook data |
↳ id | string | Webhook ID |
↳ name | string | Webhook name |
↳ token | string | Webhook token |
↳ url | string | Webhook URL |
↳ channel_id | string | Channel ID |
Create a global slash command for a Discord application
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
appId | string | Yes | Discord application (client) ID |
name | string | Yes | Command name (lowercase, no spaces) |
description | string | Yes | Command description |
options | string | No | JSON array of command options (e.g. [{"name":"user","description":"Target user","type":6,"required":true}]) |
type | string | No | Command type: 1=CHAT_INPUT (default), 2=USER, 3=MESSAGE |
| Parameter | Type | Description |
|---|
command | object | Created slash command object |
↳ id | string | Command ID |
↳ name | string | Command name |
↳ description | string | Command description |
↳ type | number | Command type |
↳ application_id | string | Application ID |
commandId | string | The created command ID |
Get all global slash commands for a Discord application
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
appId | string | Yes | Discord application (client) ID |
| Parameter | Type | Description |
|---|
commands | array | Array of slash command objects |
↳ id | string | Command ID |
↳ name | string | Command name |
↳ description | string | Command description |
↳ type | number | Command type |
Delete a global slash command from a Discord application
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
appId | string | Yes | Discord application (client) ID |
commandId | string | Yes | ID of the slash command to delete |
| Parameter | Type | Description |
|---|
success | boolean | Deletion success status |
Get all voice channels from a Discord server (guild)
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
channels | array | Array of voice channel objects |
↳ id | string | Channel ID |
↳ name | string | Channel name |
↳ type | number | Channel type (2=voice) |
↳ bitrate | number | Voice bitrate |
↳ user_limit | number | User limit |
↳ position | number | Channel position |
↳ parent_id | string | Parent category ID |
| Parameter | Type | Required | Description |
|---|
webhookId | string | Yes | No description |
webhookToken | string | Yes | No description |
content | string | Yes | No description |
username | string | No | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Message sent via webhook |
↳ id | string | Message ID |
↳ content | string | Message content |
↳ channel_id | string | Channel ID |
↳ timestamp | string | Message timestamp |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
webhookId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |
data | object | Webhook data |
↳ id | string | Webhook ID |
↳ name | string | Webhook name |
↳ channel_id | string | Channel ID |
↳ guild_id | string | Server ID |
↳ token | string | Webhook token |
| Parameter | Type | Required | Description |
|---|
botToken | string | Yes | No description |
webhookId | string | Yes | No description |
serverId | string | Yes | No description |
| Parameter | Type | Description |
|---|
message | string | Success or error message |