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

    Interface APIApplicationCommand

    interface APIApplicationCommand {
        application_id: string;
        contexts?: null | InteractionContextType[];
        default_member_permissions: null | string;
        default_permission?: boolean;
        description: string;
        description_localizations?: null | Partial<Record<Locale, null | string>>;
        description_localized?: string;
        dm_permission?: boolean;
        guild_id?: string;
        handler?: EntryPointCommandHandlerType;
        id: string;
        integration_types?: ApplicationIntegrationType[];
        name: string;
        name_localizations?: null | Partial<Record<Locale, null | string>>;
        name_localized?: string;
        nsfw?: boolean;
        options?: APIApplicationCommandOption[];
        type: ApplicationCommandType;
        version: string;
    }
    Index

    Properties

    application_id: string

    Unique id of the parent application

    contexts?: null | InteractionContextType[]

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

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

    default_member_permissions: null | string

    Set of permissions represented as a bitset

    default_permission?: 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: string

    1-100 character description for CHAT_INPUT commands, empty string for USER and MESSAGE commands

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

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

    description_localized?: string

    The localized description

    dm_permission?: 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

    guild_id?: string

    Guild id of the command, if not global

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

    This is only available for ApplicationCommandType.PrimaryEntryPoint commands

    id: string

    Unique id of the command

    integration_types?: ApplicationIntegrationType[]

    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?: null | Partial<Record<Locale, null | string>>

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

    name_localized?: string

    The localized name

    nsfw?: boolean

    Indicates whether the command is age-restricted

    false

    The parameters for the CHAT_INPUT command, max 25

    Type of the command

    version: string

    Autoincrementing version identifier updated during substantial record changes