ApplicationCommandPermissions class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

ApplicationCommandPermissions({required String id, required ApplicationCommandPermissionType type, required bool permission})
Constructor
ApplicationCommandPermissions.fromJson(Map<String, dynamic> json)
From json
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
the id of the role or user
final
permission bool
true to allow, false, to disallow
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ApplicationCommandPermissionType
role or user
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