Discord.https - v3.0.16
    Preparing search index...

    Represents an option of a received command interaction.

    interface CommandInteractionOption {
        attachment?: Attachment;
        channel?: APIInteractionDataResolvedChannel;
        member?: APIInteractionDataResolvedGuildMember;
        message?: APIMessage;
        name: string;
        options?: CommandInteractionOption[];
        role?: APIRole;
        type: ApplicationCommandOptionType;
        user?: APIUser;
        value?: string | number | boolean;
    }
    Index

    Properties

    attachment?: Attachment

    The resolved attachment for this option, if applicable.

    <interaction>.attachment
    

    The resolved channel for this option, if applicable.

    <interaction>.channel
    

    The resolved guild member for this option, if applicable.

    <interaction>.member
    
    message?: APIMessage

    The resolved message for this option, if applicable.

    <interaction>.message
    
    name: string

    The name of the option.

    <interaction>.name
    

    Additional options if this option is a subcommand or subcommand group.

    <interaction>.options
    
    role?: APIRole

    The resolved role for this option, if applicable.

    <interaction>.role
    

    The type of the option.

    <interaction>.type
    
    user?: APIUser

    The resolved user for this option, if applicable.

    <interaction>.user
    
    value?: string | number | boolean

    The value of the option. Can be string, number, or boolean depending on the option type.

    <interaction>.value