Top Level Slash Command Info
Represents a top-level slash command (i.e. not a subcommand, nor a group).
Contains additional info only available on top-level commands.
Properties
All options from this executable, including from its aggregates.
All options from this executable, including from its aggregates, sorted by order of appearance in this function.
The permissions required for the bot to run this command.
Purely for debugging purposes, will be shown in exceptions.
The description of this slash command.
All options representing a Discord input.
Returns the full command name of this application command, separate with spaces.
Whether this application command is (initially) locked to administrators.
Whether this application command is usable only in guilds (i.e., no DMs).
Whether this slash command is top-level only.
Discord's metadata about this application command.
Whether this application commands is usable only in NSFW channels.
The parameters of this executable.
The parent of this command, null
for top-level commands.
The complete path that leads to this command.
The scope on which this application command is pushed on.
Subcommand groups of this top-level slash command, the key is the name of the subcommand group.
Subcommands of this top-level slash command, the key is the name of the subcommand.
The time at which this application command was created/modified, retrieved from the version.
Retrieves the top-level command owning this application command.
The type of this application command.
The permissions required for the caller to use this command.
Functions
Finds all annotations of type annotationType from this executable's function.
Finds all annotations of type A from this executable's function.
Finds all annotations meta-annotated with annotationType from this executable's function.
Finds all annotations meta-annotated with A from this executable's function.
Finds a single annotation of type annotationType from this executable's function.
Finds a single annotation of type A from this executable's function.
Finds all annotations from this executable's function.
Returns the option with the supplied declared name (i.e., name of the method parameter), or null
if not found.
Returns the option with the supplied display name (i.e., the name you see on Discord), or null
if not found.
Returns the aggregated parameter with the supplied declared name (i.e., name of the method parameter), or null
if not found.
Returns a Usability instance, representing whether this application command can be used.
Returns true
if this element is annotated with annotationType.
Returns true
if this element is annotated with A.
Return true
if this has a one or more filters.
Return true
if this has a rate limiter.
Retrieves the IntegrationPrivileges for this application command.