$BanClient class

Constructors

$BanClient($Client _rootClient)
Creates a new DynamiteClient for ban requests.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$banActor_Request({required String token, required BanBanActorRequestApplicationJson $body, BanBanActorApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Ban an actor or IP address.
$banActor_Serializer() → DynamiteSerializer<BanBanActorResponseApplicationJson, void>
Builds a serializer to parse the response of $banActor_Request.
$listBans_Request({required String token, BanListBansApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
List the bans of a conversation.
$listBans_Serializer() → DynamiteSerializer<BanListBansResponseApplicationJson, void>
Builds a serializer to parse the response of $listBans_Request.
$unbanActor_Request({required String token, required int banId, BanUnbanActorApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Unban an actor or IP address.
$unbanActor_Serializer() → DynamiteSerializer<BanUnbanActorResponseApplicationJson, void>
Builds a serializer to parse the response of $unbanActor_Request.
banActor({required String token, required BanBanActorRequestApplicationJson $body, BanBanActorApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BanBanActorResponseApplicationJson, void>>
Ban an actor or IP address.
listBans({required String token, BanListBansApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BanListBansResponseApplicationJson, void>>
List the bans of a conversation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unbanActor({required String token, required int banId, BanUnbanActorApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BanUnbanActorResponseApplicationJson, void>>
Unban an actor or IP address.

Operators

operator ==(Object other) bool
The equality operator.
inherited