truncate

fun truncate(systemMessage: Message? = null): Call<Channel>

Removes all of the messages of the channel but doesn't affect the channel data or members.

Return

Executable async Call which completes with Result having data equal to the truncated channel if the channel was successfully truncated.

Parameters

systemMessage

The system message object that will be shown in the channel.