UserCommandPermissionBuilder class
A permission for a single user that can be used in SlashCommandBuilder
- Inheritance
-
- Object
- CommandPermissionBuilderAbstract
- UserCommandPermissionBuilder
- Annotations
-
- @Deprecated('Use SlashCommandBuilder.canBeUsedInDm and SlashCommandBuilder.requiredPermissions instead')
Constructors
- UserCommandPermissionBuilder(Snowflake id, {bool hasPermission = true})
- A permission for a single user that can be used in SlashCommandBuilder
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPermission → bool
-
Does the role have permission to use the command
finalinherited
- id → Snowflake
-
The ID of the Role or User to give permissions too
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → int
-
latefinal
Methods
-
build(
) → RawApiMap - Returns built response for api
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited