BanOptions class

Annotations
  • @freezed
  • @immutable
  • @JsonSerializable()

Constructors

BanOptions.new({BanOptionsDeleteMessages? deleteMessages, int? duration, bool? ipBan, String? reason, bool? shadowBan})
const

Properties

copyWith → $BanOptionsCopyWith<BanOptions>
Create a copy of BanOptions with the given fields replaced by the non-null parameter values.
no setterinherited
deleteMessages BanOptionsDeleteMessages?
final
duration int?
final
hashCode int
The hash code for this object.
no setterinherited
ipBan bool?
final
reason String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowBan bool?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) BanOptions