BaseChannelModeration extension

BaseChannelModeration

on

Methods

banUser({required String userId, int seconds = -1, String? description}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Bans a user. Operators can ban users from this channel. Banned user is kicked out of this channel and cannot enter during the specified seconds. If you want to ban the user indefinitely, pass -1 to seconds as the argument.
getMyMuteInfo() Future<MuteInfo>

Available on BaseChannel, provided by the BaseChannelModeration extension

Gets my muted information in this channel.
muteUser({required String userId, int seconds = -1, String? description}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Mutes User. Muted User's messages are no longer delivered to current User.
report({required ReportCategory category, String? description}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Reports this channel of inappropriate activities.
reportMessage({required BaseMessage message, required ReportCategory category, String? description}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Reports a malicious message.
reportUser({required String userId, required ReportCategory category, String? description}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Reports a user of suspicious activities.
unbanUser({required String userId}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Unbans User. Operators can unban User who has been banned from this channel.
unmuteUser({required String userId}) Future<void>

Available on BaseChannel, provided by the BaseChannelModeration extension

Unmutes User. Unmuted User's messages are again shown to current User.