interface CommandInteractionOption<Cached extends CacheType = CacheType> {
    attachment?: Attachment;
    autocomplete?: boolean;
    channel?: CacheTypeReducer<
        Cached,
        GuildBasedChannel,
        APIInteractionDataResolvedChannel,
        APIInteractionDataResolvedChannel
        | GuildBasedChannel,
        null | APIInteractionDataResolvedChannel | GuildBasedChannel,
    >;
    focused?: boolean;
    member?: CacheTypeReducer<
        Cached,
        GuildMember,
        APIInteractionDataResolvedGuildMember,
        APIInteractionDataResolvedGuildMember
        | GuildMember,
        null | APIInteractionDataResolvedGuildMember | GuildMember,
    >;
    message?: Message<BooleanCache<Cached>>;
    name: string;
    options?: readonly CommandInteractionOption<CacheType>[];
    role?: CacheTypeReducer<
        Cached,
        Role,
        APIRole,
        APIRole
        | Role,
        null | APIRole | Role,
    >;
    type: ApplicationCommandOptionType;
    user?: User;
    value?: string | number | boolean;
}

Type Parameters

Properties

attachment?: Attachment
autocomplete?: boolean
focused?: boolean
name: string
options?: readonly CommandInteractionOption<CacheType>[]
role?: CacheTypeReducer<
    Cached,
    Role,
    APIRole,
    APIRole
    | Role,
    null | APIRole | Role,
>
user?: User
value?: string | number | boolean