export interface CommandInteractionOption<Cached extends CacheType = CacheType>
Represents an option of a received command interaction.
optionalAttachment attachment? :
The resolved attachment
optionalboolean autocomplete? :
Whether the autocomplete interaction is enabled for a ApplicationCommandOptionType.String, ApplicationCommandOptionType.Integer or ApplicationCommandOptionType.Number option
optionalCacheTypeReducer<Cached, GuildBasedChannel, APIInteractionDataResolvedChannel> channel? :
The resolved channel
optionalboolean focused? :
optionalCacheTypeReducer<Cached, GuildMember, APIInteractionDataResolvedGuildMember> member? :
The resolved member
optionalMessage<BooleanCache<Cached>> message? :
string name :
The name of the option
optionalCommandInteractionOption[] options? :
Additional options if this option is a subcommand (group)
optionalCacheTypeReducer<Cached, Role, APIRole> role? :
The resolved role
ApplicationCommandOptionType type :
The type of the option
optionalUser user? :
The resolved user