Channel Resource
Channels represent spaces for communication within guilds or direct messages between users.Channel Object
Structure
Unique channel identifier
Channel type (see Channel Types)
Guild ID (null for DM channels)
Channel name (1-100 characters for guild channels)
Channel topic/description (max 1024 characters)
Hash of the channel’s icon (group DMs)
URL for link channels
ID of parent category channel
Sorting position
Owner ID for group DMs
Recipient user IDs for DM/group DM channels
Whether the channel is age-restricted
Slowmode delay in seconds (0-21600)
Voice channel bitrate in bits per second
Voice channel user limit (0 = unlimited)
Voice region override (null = automatic)
ID of the last message sent
When the last message was pinned
Permission overwrite objects (see Permission Overwrites)
Version for optimistic concurrency control
Example Channel
Channel Types
Permission Overwrites
Permission overwrites control role or member-specific permissions in a channel.Structure
Role or user ID
0 for role, 1 for member
Allowed permissions bitfield
Denied permissions bitfield
Example
Permissions
Channel permissions control what actions users can perform. See the Permissions page for the complete list.Common Permissions
Endpoints
Get Channel
Modify Channel
MANAGE_CHANNELS permission.
New channel name (1-100 characters)
New topic (max 1024 characters)
New sorting position
Whether the channel is NSFW
Slowmode delay in seconds (0-21600)
Voice channel bitrate (8000-384000)
Voice channel user limit (0-99, 0 = unlimited)
New parent category
Permission overwrite objects
Delete Channel
MANAGE_CHANNELS permission or channel ownership (for DMs).
Get Channel Messages
Max messages to return (1-100)
Get messages before this message ID
Get messages after this message ID
Get messages around this message ID
Create Message
Trigger Typing
Get Pinned Messages
Pin Message
MANAGE_MESSAGES permission.
Unpin Message
MANAGE_MESSAGES permission.