Moderations extension

Set of functionality related to channel moderation

on

Methods

banUser({required String userId, int seconds = -1, String? description}) Future<void>
Bans a user from this channel.
getMyMuteInfo() Future<MuteInfoResponse>
Gets current user's mute information
muteUser({required String userId, int seconds = -1, String? description}) Future<void>
Mutes a user from this channel.
reportChannel({required ReportCategory category, String? description}) Future<void>
Reports this channel with category and description (optional)
reportMessage({required BaseMessage message, required ReportCategory category, String? description}) Future<void>
Reports message with category and description (optional)
reportUser({required String userId, required ReportCategory category, String? description}) Future<void>
Reports a User with category and description (optional)
unbanUser({required String userId}) Future<void>
Unbans a user from this channel
unmuteUser({required String userId}) Future<void>
Unmutes user from this channel.