Get an attachment option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present or the attachment cannot be found.
Get an attachment option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a boolean option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a boolean option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a channel option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present or the channel cannot be found.
Get a channel option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a channel option's complete channel. This will only succeed if the channel is cached. If the channel is private and isn't cached, an InteractionResolvedChannel
instance will still be returned.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present or the channel cannot be found.
Get the focused option (in an autocomplete interaction).
Optional
required: falseIf true, an error will be thrown if no focused option is present.
Get an integer option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get an integer option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a user option value (as a member).
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present, or if the member cannot be found.
Get a mentionable option value (user, role).
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present, or if the value cannot be found.
Get a mentionable option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a number option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a number option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get the options received in this interaction, excluding subcommands and subcommand groups.
Get a role option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present, or if the role cannot be found.
Get a role option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a string option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a string option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
If present, returns the top level subcommand. This will return an array of the subcommand name, and subcommand group name, if applicable.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a user option value.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present, or if the user cannot be found.
Get a user option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
The raw options from Discord.
The resolved data for this options instance.
A wrapper for interaction options.