ChannelClient
Functions
Archives the channel for the current user.
Creates the id-based channel.
Deletes the file represented by url from the given channel.
Deletes the image represented by url from the given channel.
Deletes the reaction associated with the message with the given message id.
Disables slow mode for the channel.
Enables slow mode for the channel. When slow mode is enabled, users can only send a message every cooldownTimeInSeconds time interval. The cooldownTimeInSeconds is specified in seconds, and should be between 1-120.
Returns a list of messages pinned in the channel. You can sort the list by specifying sort parameter. Keep in mind that for now we only support sorting by Message.pinnedAt. The list can be paginated in a few different ways using limit and pagination.
Hides the channel.
Sends a start typing event EventType.TYPING_START in this channel to the server.
Marks a given thread in the channel as read.
Marks a given thread in the channel starting from the given message as unread.
Mutes a channel for the current user. Messages added to the channel will not trigger push notifications, and will not change the unread count for the users that muted it. By default, mutes stay in place indefinitely until the user removes it. However, you can optionally set an expiration time. Triggers notification.channel_mutes_updated
event.
Mutes a user. Messages from muted users will not trigger push notifications. By default, mutes stay in place indefinitely until the user removes it. However, you can optionally set a mute timeout. Triggers notification.mutes_updated
event.
Pins the channel for the current user.
Queries members for this channel.
Uploads a file for the given channel. Progress can be accessed via callback.
Uploads an image for the given channel. Progress can be accessed via callback.
Sends the message to the given channel with side effects if there is any plugin added in the client.
Sends the reaction. Use enforceUnique parameter to specify whether the reaction should replace other reactions added by the current user.
Sends a stop typing event EventType.TYPING_STOP in this channel to the server.
Removes all of the messages of the channel but doesn't affect the channel data or members.
Un-archives the channel for the current user.
Unmutes a channel for the current user. Triggers notification.channel_mutes_updated
event.
Unmutes a previously muted user. Triggers notification.mutes_updated
event.
Unpins the channel for the current user.
Inherited functions
Subscribes to events of type T in the channel.
Subscribes to events of type T in the channel, in the lifecycle of lifecycleOwner.
Subscribes to the specific eventTypes of the channel.
Subscribes to the specific eventTypes of the channel, in the lifecycle of lifecycleOwner.
Subscribes for the next channel event of type T.