Readonly httpvoid
Restore an archived channel
ApiError
void
Create a channel Only server channels are supported at this time (coming soon™: DM Channels!). By default, a channel will be created with a null value for priority on a server. You can update its priority using the channel update route
ApiError
Optional categoryThe category that the channel exists in. Only relevant for server channels. If not provided, channel will be a top-level channel. Optional if providing a parentId or messageId
Optional groupThe ID of the group. If not provided, channel will be created in the "Server home" group from serverId or in the group that corresponds to the categoryId parameter. Optional if providing a groupId, categoryId, parentId or messageId
Optional messageThe ID of the message that this channel was created off of. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present
The name of the channel
Optional parentID of the immediate parent channel or thread in the channel hierarchy. Only applicable to "chat", "voice", and "stream" channels and indicates that this channel is a thread, if present. Optional if providing a messageId
Optional serverThe ID of the server. Optional if providing a groupId, categoryId, parentId or messageId
Optional topic?: stringThe topic of the channel. Not applicable to threads
The type of channel. This will determine what routes to use for creating content in a channel. For example, if this "chat", then one must use the routes for creating channel messages. For threads, this must be "chat" for now
Optional visibility?: null | "private" | "public"What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. public is accessible to everyone, even those who aren't of the server. private is only accessible to explicitly mentioned users. Currently, threads cannot be public and other channels cannot be private. Additionally, private threads can only exist with an associated messageId that is for a private message
any Success
Delete a channel Only server channels are supported at this time (coming soon™: DM Channels!)
ApiError
void
Get a channel Must be a member of the server to get the channel. Only server channels are supported at this time (coming soon™: DM Channels!)
ApiError
any Success
Update a channel Only server channels are supported at this time (coming soon™: DM Channels!)
ApiError
Optional name?: stringThe name of the channel or thread
Optional priority?: numberThe priority of the channel will determine its position relative to other categories in the group. The higher the value, the higher up it will be displayed in the UI. Returned values can be null, in which case sorting will be done by createdAt in ascending order. Due to legacy issues, sending a null value is not possible
Optional topic?: null | stringThe topic of the channel. Not applicable to threads
Optional visibility?: null | "public"What users can access the channel. Only applicable to server channels. If not present, this channel will respect normal permissions. public is accessible to everyone, even those who aren't of the server. private is only accessible to explicitly mentioned users. Currently, threads cannot be public and other channels cannot be private. Additionally, private threads can only exist with an associated messageId that is for a private message. At this time, you cannot update the visibility on a channel to private; this must be set at creation
any Success
Generated using TypeDoc
Archive a channel
Throws
ApiError