Entities / Application Command
A slash, user or message command as Discord sees it: what 'update the discord commands' and 'register the discord command' push, and what 'registered commands of' brings back. Made by 'a new slash/user/message command', by the 'slash command' / 'user command' / 'message command' structures (read them back with 'structured slash command "name"'), or retrieved from Discord.
9 syntaxes 3 subtypesnet.itsthesky.disky5.api.commands.application.ApplicationCommandHolder Properties9 Returned by2 Documentation5
On this page
Properties 9 Returned by 2 Documentation 5
command id
propertyText since 5.0.0-a2
[the] command id of
%applicationcommand%
%applicationcommand% 's command id
The Discord id of the command, known once it was registered or retrieved; none before.
Show example
command type
propertyText since 5.0.0-a2
[the] command type of
%applicationcommand%
%applicationcommand% 's command type
"slash", "user" or "message".
Show example
enabled for
propertylist of Permission since 5.0.0-a2
Feeling lost? This is covered in the guide Command settings
[the] enabled for of
%applicationcommand%
%applicationcommand% 's enabled for
The permissions a member needs to see and use the command by default (admins always can). Empty means everyone.
Setting it to nothing re-enables the command for everyone; see 'disabled' to hide it from everyone.
Show examples
disabled
propertyBoolean since 5.0.0-a2
[the] disabled of
%applicationcommand%
%applicationcommand% 's disabled
Whether the command is hidden from everyone but administrators by default.
Show example
nsfw
propertyBoolean since 5.0.0-a2
[the] nsfw of
%applicationcommand%
%applicationcommand% 's nsfw
Whether the command is age-restricted (only usable in NSFW channels and by adult users).
Show example
contexts
propertylist of InteractionContextType since 5.0.0-a2
integration types
propertylist of IntegrationType since 5.0.0-a2
[the] integration types of
%applicationcommand%
%applicationcommand% 's integration types
How the command is installed: guild install (the default) and/or user install.
Show example
name localizations
propertylist of Text since 5.0.0-a2
[the] name localizations of
%applicationcommand%
%applicationcommand% 's name localizations
The translated names, as "locale: text" lines. Set them with 'localize the name of ...'.
Show example
name
propertyText shared
since 5.0.0-a1
[the] name of
%applicationcommand%
%applicationcommand% 's name
The name of a Discord entity: a user's or member's account name, a guild's name, a role/channel name, a bot's define-name. Registered on Skript's native Property.NAME, so the idiomatic "name of %x%" works without colliding. For a member's server nickname or display name, use "effective name".
Show example
Syntaxes elsewhere in DiSky that return Application Command.
Hand-written guides that cover Application Command.
Slash commands The slash command structure, its path, description and trigger, and pushing it to Discord. Docs
Context commands The user and message context-menu command structures and builders, and what their trigger can read. Docs
Command builders Building slash, user and message commands as plain objects instead of structures, and mixing the two. Docs
Registering commands Push structure and builder commands to Discord with update, register and unregister, and read back what's already there. Docs
Command settings Permissions, contexts, localised names and descriptions, and cooldowns, shared by every slash, user and message command. Docs