The raw options from Discord.
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 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 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 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 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 value (id).
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 (channel).
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 an integer option.
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 (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.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a mentionable option (id).
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a mentionable option (channel, 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 number 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 role option.
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a role option value (id).
The name of the option.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a role option value (role).
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 string 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.
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 only goes one level deep, to get the subcommand of a subcommandgroup, you must call this twice in a ro.
Optional
required: falseIf true, an error will be thrown if the option is not present.
Get a user 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 (id).
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 (user).
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.
A wrapper for interaction options.