CommandPermissions class

The permissions for an ApplicationCommand in a guild.

Inheritance

Properties

application PartialApplication
The application these permissions apply to.
no setter
applicationId Snowflake
The ID of the application these permissions apply to.
final
command PartialApplicationCommand?
The command these permissions apply to, or null if these permissions apply to the entire application.
no setter
guild PartialGuild
The guild these permissions apply in.
no setter
guildId Snowflake
The ID of the guild these permissions apply in.
final
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
The id of this entity.
finalinherited
manager GuildApplicationCommandManager
The manager for this CommandPermissions.
final
permissions List<CommandPermission>
A list of specific permissions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

defaultToString() String
Same as toString, but only called when dart:mirrors is not available.
inherited
fetch() Future<CommandPermissions>
Fetch this entity from the API.
override
get() Future<CommandPermissions>
If this entity exists in the manager's cache, return the cached instance. Otherwise, fetch this entity and return it.
override
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