Skip to content

Channel

Definitions

Channel

FIELDTYPEDESCRIPTION
idstringchannel id
typeChannelTypechannel type
namestring?channel name
parent_idstring?parent channel id

ChannelType

TYPEVALUEDESCRIPTION
TEXT0text channel
DIRECT1direct message channel
CATEGORY2category channel
VOICE3voice channel

API

Get Guild Channel

POST /channel.get
FIELDTYPEDESCRIPTION
channel_idstringchannel id

Get a channel by id. Returns a Channel object.

Get Guild Channel List

POST /channel.list
FIELDTYPEDESCRIPTION
guild_idstringguild id
nextstringpagination token

Get all channels in a guild. Returns a paginated list of Channel objects.

Create Guild Channel

POST /channel.create
FIELDTYPEDESCRIPTION
guild_idstringguild id
dataChannelchannel data

Create a guild channel. Returns a Channel object.

Update Guild Channel

POST /channel.update
FIELDTYPEDESCRIPTION
channel_idstringchannel id
dataChannelchannel data

Update a guild channel.

Delete Guild Channel

POST /channel.delete
FIELDTYPEDESCRIPTION
channel_idstringchannel id

Delete a guild channel.

Mute Guild Channel Experimental

POST /channel.mute
FIELDTYPEDESCRIPTION
channel_idstringchannel id
durationnumbermute duration (in milliseconds)

Mute a guild channel. If the duration is set to 0, it will unmute the channel.

Create Direct Message Channel

POST /user.channel.create
FIELDTYPEDESCRIPTION
user_idstringuser id
guild_idstring?guild id

Create a direct message channel. Returns a Channel object.