Optional
resolved: The bottom-level options for the interaction. If there is a subcommand (or subcommand and group), this is the options for the subcommand.
Readonly
clientReadonly
dataThe resolved data from the interaction (users, members, roles, channels, messages).
Gets an option by its name.
The name of the option.
Whether to throw if the option is not found.
The option, or null if not found.
Gets an attachment option.
The name of the option.
Whether to throw an error if not present. Defaults to false
.
The resolved attachment, or null
.
Gets a channel option.
The name of the option.
Whether to throw an error if not found. Defaults to false
.
Allowed channel types.
The resolved channel, or null
.
Gets a member option.
The name of the option.
The resolved member, or null
.
Gets a mentionable option (user, member, or role).
The name of the option.
Whether to throw an error if not found. Defaults to false
.
The resolved user, member, or role, or null
.
Gets a role option.
The name of the option.
Whether to throw an error if not found. Defaults to false
.
The resolved role, or null
.
Gets the selected subcommand.
Whether to throw an error if there is no subcommand.
The name of the selected subcommand, or null if not set and not required.
Gets the selected subcommand group.
Whether to throw an error if there is no subcommand group.
The name of the selected subcommand group, or null if not set and not required.
A resolver for command interaction options.