CommandInteractionOption

export interface CommandInteractionOption<Cached extends CacheType = CacheType>
export interface CommandInteractionOption<Cached extends CacheType = CacheType>
Represents an option of a received command interaction.
NameConstraintsOptionalDefaultDescription
CachedCacheTypeYesCacheTypeNone
attachment?:Attachment
The resolved attachment
autocomplete?:boolean
focused?:boolean
message?:Message<BooleanCache<Cached>>
name:string
The name of the option
options?:readonly CommandInteractionOption[]
Additional options if this option is a subcommand (group)
role?:CacheTypeReducer<Cached, Role, APIRole>
The resolved role
The type of the option
user?:User
The resolved user
value?:string | number | boolean
The value of the option