BaseChannelModeration extension

BaseChannelModeration

on

Methods

banUser({required String userId, int seconds = -1, String? description}) Future<void>
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>
Gets my muted information in this channel.
muteUser({required String userId, int seconds = -1, String? description}) Future<void>
Mutes User. Muted User's messages are no longer delivered to current User.
report({required ReportCategory category, String? description}) Future<void>
Reports this channel of inappropriate activities.
reportMessage({required BaseMessage message, required ReportCategory category, String? description}) Future<void>
Reports a malicious message.
reportUser({required String userId, required ReportCategory category, String? description}) Future<void>
Reports a user of suspicious activities.
unbanUser({required String userId}) Future<void>
Unbans User. Operators can unban User who has been banned from this channel.
unmuteUser({required String userId}) Future<void>
Unmutes User. Unmuted User's messages are again shown to current User.