berconpy.Ban¶
- class berconpy.Ban(cache, index, id, duration, reason)¶
Bases:
BanAn asynchronous implemenation of the
Banclass.Methods
unban()Removes this ban from the server.
Attributes
The index assigned to this ban by the server.
The player identifier this ban affects.
The duration of the ban in minutes.
The reason given for the ban.
The cache that created this object.
Returns the client associated with the cache.
- async unban()¶
Removes this ban from the server.
- Return type:
- Returns:
The response from the server, if any.
- property cache: AsyncRCONClientCache¶
The cache that created this object.
- property client: AsyncRCONClient | None¶
Returns the client associated with the cache.
-
duration:
Optional[int]¶ The duration of the ban in minutes.
If the ban has expired, this will be
-1. If the ban is permanent, this will beNone.
-
id:
str¶ The player identifier this ban affects.
This can be either a BattlEye GUID or an IP address.