Options
All
  • Public
  • Public/Protected
  • All
Menu

Context menu user command

Hierarchy

  • default<this>
    • UserCommand

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Returns UserCommand

Properties

name

name: string

The name of the command

Readonly type

type: 2 = 2

Accessors

rawData

  • get rawData(): { name: string; type: number }
  • The raw object for context menu command data. Used to interact with discord.

    Returns { name: string; type: number }

    • name: string
    • type: number

Methods

execute

  • execute(interaction: ContextMenuInteraction<CacheType>): void
  • The function to execute when command is called by context menu

    Parameters

    • interaction: ContextMenuInteraction<CacheType>

      The context menu interaction object

    Returns void

Generated using TypeDoc