ISlashCommand class abstract
Constructors
Properties
- applicationId → Snowflake
-
Unique id of the parent application
no setter
- canBeUsedInDm → bool
-
Whether this slash command can be used in a DM channel with the bot.
no setter
- createdAt → DateTime
-
Gets creation timestamp included in
Snowflake
no setterinherited - defaultPermissions → bool
-
Whether the command is enabled by default when the app is added to a guild
no setter
- description → String
-
Command description shown to the user in the Slash Command UI
no setter
-
guild
→ Cacheable<
Snowflake, IGuild> ? -
Guild id of the command, if not global
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
ID of entity as Snowflake
finalinherited
- isNsfw → bool
-
Indicates whether the command is age-restricted.
no setter
-
localizationsDescription
→ Map<
Locale, String> ? -
The localized descriptions of the command.
no setter
-
localizationsName
→ Map<
Locale, String> ? -
The localized names of the command.
no setter
- name → String
-
Command name to be shown to the user in the Slash Command UI
no setter
-
options
→ List<
ICommandOption> -
The arguments that the command takes
no setter
-
permissionOverrides
→ Cacheable<
Snowflake, ISlashCommandPermissionOverrides> ? -
If this command is a guild command, the permission overrides attached to this command,
null
otherwise.no setter - requiredPermissions → int
-
A set of permissions required by users in guilds to execute this command.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → SlashCommandType
-
The type of command
no setter
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