Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SubCommand

Representation of SUB_COMMAND Discord interaction

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 default_permission

default_permission: boolean

Discord API default_permission

readonly

Readonly description

description: string

Command description displayed in the help message or in slash commands menu (Default description: "No description")

readonly

Readonly manager

Manager in which this command is registered

readonly

Readonly name

name: string

Command name

readonly

Readonly parameters

parameters: Parameter<any>[]

List of parameters that can passed to this command

readonly

Readonly parent

Command parent

readonly

Readonly permissions

permissions: CommandPermissions

Object containing check functions and permission bitfields

readonly

Readonly type

CommandBot's internal command type

readonly

Optional Readonly usage

usage?: string

Command usage displayed in the help message

readonly

Methods

isBaseCommandType

isChildCommandType

isCommandType

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

start

toObject

Generated using TypeDoc