Interface MessageApplicationCommandData

interface MessageApplicationCommandData {
    contexts?: readonly InteractionContextType[];
    defaultMemberPermissions?: null | PermissionResolvable;
    dmPermission?: boolean;
    execute: ((interaction: MessageContextMenuCommandInteraction<CacheType>) => Promise<void>);
    integrationTypes?: readonly ApplicationIntegrationType[];
    name: string;
    nameLocalizations?: Partial<Record<
        | "id"
        | "en-US"
        | "en-GB"
        | "bg"
        | "zh-CN"
        | "zh-TW"
        | "hr"
        | "cs"
        | "da"
        | "nl"
        | "fi"
        | "fr"
        | "de"
        | "el"
        | "hi"
        | "hu"
        | "it"
        | "ja"
        | "ko"
        | "lt"
        | "no"
        | "pl"
        | "pt-BR"
        | "ro"
        | "ru"
        | "es-ES"
        | "es-419"
        | "sv-SE"
        | "th"
        | "tr"
        | "uk"
        | "vi", null | string>>;
    nsfw?: boolean;
    type: Message;
}

Hierarchy

  • MessageApplicationCommandData
    • MessageApplicationCommandData

Properties

contexts?: readonly InteractionContextType[]
defaultMemberPermissions?: null | PermissionResolvable
dmPermission?: boolean
execute: ((interaction: MessageContextMenuCommandInteraction<CacheType>) => Promise<void>)
integrationTypes?: readonly ApplicationIntegrationType[]
name: string
nameLocalizations?: Partial<Record<
    | "id"
    | "en-US"
    | "en-GB"
    | "bg"
    | "zh-CN"
    | "zh-TW"
    | "hr"
    | "cs"
    | "da"
    | "nl"
    | "fi"
    | "fr"
    | "de"
    | "el"
    | "hi"
    | "hu"
    | "it"
    | "ja"
    | "ko"
    | "lt"
    | "no"
    | "pl"
    | "pt-BR"
    | "ro"
    | "ru"
    | "es-ES"
    | "es-419"
    | "sv-SE"
    | "th"
    | "tr"
    | "uk"
    | "vi", null | string>>
nsfw?: boolean
type: Message