PermissionOverwrite class
Overwrite structure
See permissions for more information about the allow and deny fields.
https://discord.com/developers/docs/resources/channel#overwrite-object-overwrite-structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
PermissionOverwrite({required String id, required PermissionOverwriteType type, required List<
Permission> allow, required List<Permission> deny}) - Constructor
-
PermissionOverwrite.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
-
allow
→ List<
Permission> -
permission bit set
final
-
deny
→ List<
Permission> -
permission bit set
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
role or user id
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → PermissionOverwriteType
-
either role or member
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited