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

    Interface RESTPostAPIContextMenuApplicationCommandsJSONBody

    interface RESTPostAPIContextMenuApplicationCommandsJSONBody {
        contexts?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | InteractionContextType[],
        >;
        default_member_permissions?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | null
            | string,
        >;
        default_permission?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | boolean,
        >;
        description_localizations?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | null
            | Partial<Record<Locale, null | string>>,
        >;
        dm_permission?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | boolean,
        >;
        handler?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface;
        integration_types?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | ApplicationIntegrationType[],
        >;
        name: string;
        name_localizations?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | null
            | Partial<Record<Locale, null | string>>,
        >;
        nsfw?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | boolean,
        >;
        options?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
            undefined
            | APIApplicationCommandOption[],
        >;
        type: User | Message;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Interaction context(s) where the command can be used, only for globally-scoped commands

    [InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]

    default_member_permissions?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
        undefined
        | null
        | string,
    >

    Set of permissions represented as a bitset

    default_permission?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
        undefined
        | boolean,
    >

    Whether the command is enabled by default when the app is added to a guild

    If missing, this property should be assumed as true

    description_localizations?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
        undefined
        | null
        | Partial<Record<Locale, null | string>>,
    >

    Localization dictionary for the description field. Values follow the same restrictions as description

    dm_permission?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
        undefined
        | boolean,
    >

    Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible

    Use APIApplicationCommand.contexts instead

    Determines whether the interaction is handled by the app's interactions handler or by Discord

    This is only available for ApplicationCommandType.PrimaryEntryPoint commands

    Installation context(s) where the command is available, only for globally-scoped commands

    [ApplicationIntegrationType.GuildInstall]

    name: string

    1-32 character name; CHAT_INPUT command names must be all lowercase matching ^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$

    name_localizations?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
        undefined
        | null
        | Partial<Record<Locale, null | string>>,
    >

    Localization dictionary for the name field. Values follow the same restrictions as name

    nsfw?: _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
        undefined
        | boolean,
    >

    Indicates whether the command is age-restricted

    false

    The parameters for the CHAT_INPUT command, max 25

    type: User | Message