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
MutesUser
. MutedUser
's messages are no longer delivered to currentUser
. -
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
UnbansUser
. Operators can unbanUser
who has been banned from this channel. -
unmuteUser(
{required String userId}) → Future< void> -
Available on BaseChannel, provided by the BaseChannelModeration extension
UnmutesUser
. UnmutedUser
's messages are again shown to currentUser
.