Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContextMenuCommand

Representation of all context menu Discord interactions

Hierarchy

Index

Constructors

constructor

Properties

Readonly announceSuccess

announceSuccess: boolean

Whether a SUCCESS message should be sent after executing the command function (when there is no other reply)

readonly

Readonly contextType

contextType: ContextType

Type of context menu interaction

readonly

Readonly default_permission

default_permission: boolean

Discord API default_permission

readonly

Readonly dm

dm: boolean

If set to false, all interactions that get invoked from private/direct conversations (outside a guild) will result a PermissionError

readonly

Optional Readonly guilds

guilds?: string[]

List of Discord guild (server) IDs in which this command can be used

readonly

Readonly manager

Manager in which this command is registered

readonly

Readonly name

name: string

Command name

readonly

Readonly permissions

permissions: CommandPermissions

Object containing check functions and permission bitfields

readonly

Readonly type

CommandBot's internal command type

readonly

Methods

isBaseCommandType

isChildCommandType

isCommandType

  • isCommandType<T>(type: T): this is Commands<T>

start

toObject

Generated using TypeDoc