CommandInteractionOption
typedef · Source
Represents an option of a received command interaction. Type: Object
Properties
name
name: string
The name of the option
type
type: ApplicationCommandOptionType
The type of the option
autocomplete
autocomplete: boolean
Whether the option is an autocomplete option
value
value: string | number | boolean
The value of the option
options
options: Array<CommandInteractionOption>
Additional options if this option is a subcommand (group)
user
user: User
The resolved user
member
member: GuildMember | APIGuildMember
The resolved member
channel
channel: GuildChannel | ThreadChannel | APIChannel
The resolved channel
role
role: Role | APIRole
The resolved role
attachment
attachment: MessageAttachment
The resolved attachment