Send messages and manage channels via a Discord bot
https://discord.com/api/v10/channels/{channel_id}/messages
| Param | Type | Required | Description |
|---|---|---|---|
| channel_id | string | required | Snowflake ID of the channel to post in |
| content | string | required | Message text (up to 2000 characters) |
| tts | boolean | optional | Send as a text-to-speech message |
| embeds | array | optional | Rich embed objects to attach (max 10), per Discord's embed object schema |
/channels/{channel_id}/messages/{message_id}
| Param | Type | Required | Description |
|---|---|---|---|
| channel_id | string | required | Snowflake ID of the channel |
| message_id | string | required | Snowflake ID of the message to edit |
| content | string | required | New message text (up to 2000 characters) |
/channels/{channel_id}/messages/{message_id}
| Param | Type | Required | Description |
|---|---|---|---|
| channel_id | string | required | Snowflake ID of the channel |
| message_id | string | required | Snowflake ID of the message to delete |
/channels/{channel_id}/messages
| Param | Type | Required | Description |
|---|---|---|---|
| channel_id | string | required | Snowflake ID of the channel |
| limit | integer | optional | Max messages to return (1-100, default 50) |
| before | string | optional | Return messages before this message ID |
| after | string | optional | Return messages after this message ID |
/channels/{channel_id}
| Param | Type | Required | Description |
|---|---|---|---|
| channel_id | string | required | Snowflake ID of the channel |
/guilds/{guild_id}/channels
| Param | Type | Required | Description |
|---|---|---|---|
| guild_id | string | required | Snowflake ID of the server (guild) |
/guilds/{guild_id}/channels
| Param | Type | Required | Description |
|---|---|---|---|
| guild_id | string | required | Snowflake ID of the server (guild) |
| name | string | required | Channel name (1-100 characters) |
| type | integer | optional | Channel type: 0=text, 2=voice, 4=category, 5=announcement |
| topic | string | optional | Channel topic (text channels only, max 1024 chars) |
| parent_id | string | optional | Category channel ID to nest this channel under |
/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me
| Param | Type | Required | Description |
|---|---|---|---|
| channel_id | string | required | Snowflake ID of the channel |
| message_id | string | required | Snowflake ID of the message to react to |
| emoji | string | required | URL-encoded unicode emoji (e.g. '%F0%9F%91%8D') or 'name:id' for a custom emoji |
/guilds/{guild_id}/members
| Param | Type | Required | Description |
|---|---|---|---|
| guild_id | string | required | Snowflake ID of the server (guild) |
| limit | integer | optional | Max members to return (1-1000, default 1) |
| after | string | optional | Return members with a user ID after this value |