Interface CreateApplicationCommandOptionsBase<T>

interface CreateApplicationCommandOptionsBase<T> {
    contexts?: InteractionContextTypes[];
    defaultMemberPermissions?: null | string;
    dmPermission?: null | boolean;
    id?: string;
    integrationTypes?: ApplicationIntegrationTypes[];
    name: string;
    nameLocalizations?: null | Partial<Record<Locale, string>>;
    nsfw?: boolean;
    type: T;
}

Type Parameters

Hierarchy (view full)

Properties

The interaction contexts where the command can be used. Defaults to all interaction context types for new commands.

defaultMemberPermissions?: null | string

The default member permissions for the command.

dmPermission?: null | boolean

If the command can be used in a DM.

Deprecated

Use contexts instead.

id?: string

The ID of the command, if known. (Only usable when bulkEditing guild commands.)

integrationTypes?: ApplicationIntegrationTypes[]

The install contexts where the command is available. Defaults to GUILD_INSTALL.

name: string

The name of the command.

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

A dictionary of locales to localized names.

nsfw?: boolean

Whether the command is age restricted.

type: T

The type of the command.