Skip to main content

Module channel

Module channel 

Source
Expand description

Channel commands (specification §8.2, permissions §2, §4.4). Responses are Channel or {}.

SPEC: §8.2 lists channel_id in the bodies of channel.update, channel.delete and channel.permissions.update, while §7.1 puts it on the envelope for channel-scoped commands. It is optional here; Command::channel_id gives the body’s value and the envelope layer requires one of the two (and equality if both).

Structs§

Create
channel.create (§8.2).
Delete
channel.delete (§8.2).
PermissionsUpdate
channel.permissions.update (§8.2).
Reorder
channel.reorder (§8.2).
Update
channel.update (§8.2): any of the fields; null clears only topic and parent_id.