CommandPermissionBuilderAbstract class abstract

Used to define permissions for a particular command.

Inheritance
Implementers
Annotations
  • @Deprecated('Use SlashCommandBuilder.canBeUsedInDm and SlashCommandBuilder.requiredPermissions instead')

Constructors

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

Properties

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

Methods

build() RawApiMap
Returns built response for api
inherited
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