Channel Types
Channels are communication spaces within a community. There are three types:Text channels for sending messages
Voice channels for audio communication
Category channels for organizing other channels
Channel Structure
TheChannel type represents a channel within a community:
Snowflake ID of the channel
Snowflake ID of the community this channel belongs to
The name of the channel
The type of channel (TEXT, VOICE, or CATEGORY)
The position/order of the channel in the channel list
Snowflake ID of the parent category channel. Only set if this channel is nested under a category.
Get Channels
Retrieve all channels in a community. Method:communities.getChannels
Request: GetChannels
Snowflake ID of the community
Channels
Conversation metadata for each channel (last read message, unread count, etc.)
List of all channels in the community
Last message for each channel (used for display purposes)
Create Channel
Create a new channel in a community. Method:communities.createChannel
Request: CreateChannel
Snowflake ID of the community where the channel will be created
The name for the new channel
The type of channel to create (TEXT, VOICE, or CATEGORY)
Snowflake ID of the parent category. If provided, this channel will be nested under that category.
Edit Channel
Modify an existing channel’s properties. Method:communities.editChannel
Request: EditChannel
Reference to the channel to edit (contains community_id and channel_id)
New name for the channel
New position/order for the channel
New parent category ID. Can be set to move the channel to a different category or remove it from a category.
Delete Channel
Permanently delete a channel from a community. Method:communities.deleteChannel
Request: DeleteChannel
Reference to the channel to delete (contains community_id and channel_id)