ISlashCommand class abstract

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-onlyinherited
defaultPermissions bool
Whether the command is enabled by default when the app is added to a guild
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-onlyinherited
id Snowflake
ID of entity as Snowflake
finalinherited
isNsfw bool
Indicates whether the command is age-restricted.
read-only
localizationsDescription Map<Locale, String>?
The localized descriptions of the command.
read-only
localizationsName Map<Locale, String>?
The localized names of the command.
read-only
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-onlyinherited
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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
inherited