RoleCommandPermissionBuilder class Null safety

A permission for a single role that can be used in SlashCommandBuilder

Inheritance

Constructors

RoleCommandPermissionBuilder(Snowflake id, {bool hasPermission = true})
A permission for a single role that can be used in SlashCommandBuilder

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
hasPermission bool
Does the role have permission to use the command
final, inherited
id Snowflake
The ID of the Role or User to give permissions too
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build() RawApiMap
Returns built response for api
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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