Class ApplicationCommand<PermissionsFetchType>

Type Parameters

  • PermissionsFetchType = {}

Hierarchy

  • Base
    • ApplicationCommand

Constructors

Properties

applicationId: string
client: Client<true>
contexts: null | InteractionContextType[]
defaultMemberPermissions: null | Readonly<PermissionsBitField>
description: string
descriptionLocalizations: null | 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>>
descriptionLocalized: null | string
dmPermission: null | boolean

Deprecated

Use contexts instead

guild: null | Guild
guildId: null | string
id: string
integrationTypes: null | ApplicationIntegrationType[]
name: string
nameLocalizations: null | 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>>
nameLocalized: null | string
nsfw: boolean
options: Object[]
permissions: ApplicationCommandPermissionsManager<PermissionsFetchType, PermissionsFetchType, null | Guild, string>
version: string

Accessors

  • get createdAt(): Date
  • Returns Date

  • get createdTimestamp(): number
  • Returns number

Methods

  • Parameters

    • Optional dmPermission: boolean

    Returns Promise<ApplicationCommand<PermissionsFetchType>>

  • Parameters

    Returns Promise<ApplicationCommand<PermissionsFetchType>>

  • Parameters

    • description: string

    Returns Promise<ApplicationCommand<PermissionsFetchType>>

  • Parameters

    • descriptionLocalizations: 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>>

    Returns Promise<ApplicationCommand<PermissionsFetchType>>

  • Parameters

    • name: string

    Returns Promise<ApplicationCommand<PermissionsFetchType>>

  • Parameters

    • 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>>

    Returns Promise<ApplicationCommand<PermissionsFetchType>>

  • Parameters

    • Rest ...props: Record<string, string | boolean>[]

    Returns unknown

  • Returns string

  • Parameters

    Returns unknown

Generated using TypeDoc