export interface CommandInteractionOption<Cached extends CacheType = CacheType>Represents an option of a received command interaction.
optionalattachment? : Attachment
The resolved attachment
optionalautocomplete? : boolean
Whether the autocomplete interaction is enabled for a ApplicationCommandOptionType.String, ApplicationCommandOptionType.Integer or ApplicationCommandOptionType.Number option
optionalchannel? : CacheTypeReducer<Cached, GuildBasedChannel, APIInteractionDataResolvedChannel>
The resolved channel
optionalfocused? : boolean
optionalmember? : CacheTypeReducer<Cached, GuildMember, APIInteractionDataResolvedGuildMember>
The resolved member
optionalmessage? : Message<BooleanCache<Cached>>
name : string
The name of the option
optionaloptions? : readonly CommandInteractionOption[]
Additional options if this option is a subcommand (group)
optionalrole? : CacheTypeReducer<Cached, Role, APIRole>
The resolved role
type : ApplicationCommandOptionType
The type of the option
optionaluser? : User
The resolved user