Class SharedSlashCommand

This mixin holds symbols that can be shared in slashcommands independent of options or subcommands.

Hierarchy

Constructors

Properties

default_member_permissions: undefined | null | string
default_permission: undefined | boolean

Deprecated

Use setDefaultMemberPermissions or setDMPermission instead.

description: string
description_localizations?: 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>>
dm_permission: undefined | boolean

Deprecated

Use contexts instead.

integration_types?: ApplicationIntegrationType[]
name: string
name_localizations?: 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: undefined | boolean

Methods

  • Sets whether this command is NSFW.

    Parameters

    • Optional nsfw: boolean

      Whether this command is NSFW

    Returns SharedSlashCommand

Generated using TypeDoc