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

    Class SharedSlashCommand

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    default_member_permissions: undefined | null | string
    default_permission: undefined | boolean
    description: string
    description_localizations?: Partial<Record<Locale, null | string>>
    dm_permission: undefined | boolean

    Use SharedSlashCommand.contexts instead.

    integration_types?: ApplicationIntegrationType[]
    name: string
    name_localizations?: Partial<Record<Locale, null | string>>
    nsfw: undefined | boolean

    Methods

    • Sets the default permissions a member should have in order to run the command.

      Parameters

      • permissions: undefined | null | string | number | bigint

        The permissions bit field to set

      Returns this

      You can set this to '0' to disable the command by default.

    • Sets whether this command is NSFW.

      Parameters

      • Optionalnsfw: boolean

        Whether this command is NSFW

      Returns this