addMembers

fun addMembers(channelType: String, channelId: String, memberIds: List<String>, systemMessage: Message? = null, hideHistory: Boolean? = null, skipPush: Boolean? = null): Call<Channel>

Adds members to a given channel.

Return

Executable async Call responsible for adding the members.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.

memberIds

The list of the member ids to be added.

systemMessage

The system message that will be shown in the channel.

hideHistory

Hides the history of the channel to the added member.

skipPush

If true, skips sending push notifications.


fun addMembers(channelType: String, channelId: String, params: AddMembersParams): Call<Channel>

Adds members to a given channel.

Return

Executable async Call responsible for adding the members.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.

params

The AddMembersParams holding data about the members to be added.