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
Whether the autocomplete interaction is enabled for a , or option
focused?:boolean
message?:Message<BooleanCache<Cached>>
name:string
The name of the option
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