Moderations extension

Set of functionality related to channel moderation

on

Methods

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

Available on BaseChannel, provided by the Moderations extension

Bans a user from this channel.
getMyMuteInfo() Future<MuteInfoResponse>

Available on BaseChannel, provided by the Moderations extension

Gets current user's mute information
muteUser({required String userId, int seconds = -1, String? description}) Future<void>

Available on BaseChannel, provided by the Moderations extension

Mutes a user from this channel.
reportChannel({required ReportCategory category, String? description}) Future<void>

Available on BaseChannel, provided by the Moderations extension

Reports this channel with category and description (optional)
reportMessage({required BaseMessage message, required ReportCategory category, String? description}) Future<void>

Available on BaseChannel, provided by the Moderations extension

Reports message with category and description (optional)
reportUser({required String userId, required ReportCategory category, String? description}) Future<void>

Available on BaseChannel, provided by the Moderations extension

Reports a User with category and description (optional)
unbanUser({required String userId}) Future<void>

Available on BaseChannel, provided by the Moderations extension

Unbans a user from this channel
unmuteUser({required String userId}) Future<void>

Available on BaseChannel, provided by the Moderations extension

Unmutes user from this channel.