Options
All
  • Public
  • Public/Protected
  • All
Menu

Context menu message command

Hierarchy

  • default<this>
    • MessageCommand

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Returns MessageCommand

Properties

name

name: string

The name of the command

Readonly type

type: 3 = 3

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