ISlashCommand class Null safety

Implemented types

Constructors

ISlashCommand()

Properties

applicationId Snowflake
Unique id of the parent application
read-only
canBeUsedInDm bool
Whether this slash command can be used in a DM channel with the bot.
read-only
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
defaultPermissions bool
Whether the command is enabled by default when the app is added to a guild
@Deprecated('Use canBeUsedInDm and requiresPermissions instead'), read-only
description String
Command description shown to the user in the Slash Command UI
read-only
guild Cacheable<Snowflake, IGuild>?
Guild id of the command, if not global
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
name String
Command name to be shown to the user in the Slash Command UI
read-only
options List<ICommandOption>
The arguments that the command takes
read-only
permissionOverrides Cacheable<Snowflake, ISlashCommandPermissionOverrides>?
If this command is a guild command, the permission overrides attached to this command, null otherwise.
read-only
requiredPermissions int
A set of permissions required by users in guilds to execute this command. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type SlashCommandType
The type of command
read-only

Methods

getPermissionOverridesInGuild(Snowflake guildId) Cacheable<Snowflake, ISlashCommandPermissionOverrides>
Get the permission overrides for this command in a specific guild.
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 ==(dynamic other) bool
The equality operator. [...]
inherited