shadowBan method

Future<EmptyResponse> shadowBan(
  1. String userID,
  2. Map<String, dynamic> options
)

Shadow bans the user with the given userID from the channel.

Implementation

Future<EmptyResponse> shadowBan(
  String userID,
  Map<String, dynamic> options,
) async {
  _checkInitialized();
  final opts = Map<String, dynamic>.from(options)
    ..addAll({
      'type': type,
      'id': id,
    });
  return _client.shadowBan(userID, opts);
}