Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Command

Hierarchy

  • Command

Implements

Index

Constructors

constructor

Properties

aliases

aliases: string[]

argsRequired

argsRequired: boolean

caseInsensitive

caseInsensitive: boolean

cooldown

cooldown: number

cooldownExclusions

cooldownExclusions: CommandCooldownExclusions

cooldownMessage

cooldownReturns

cooldownReturns: number

defaultSubcommandOptions

defaultSubcommandOptions: CommandOptions

deleteCommand

deleteCommand: boolean

description

description: string

dmOnly

dmOnly: boolean

errorMessage

fullDescription

fullDescription: string

fullLabel

fullLabel: string

guildOnly

guildOnly: boolean

hidden

hidden: boolean

hooks

hooks: Hooks

invalidUsageMessage

invalidUsageMessage: false | MessageContent | GenericCheckFunction<MessageContent>

label

label: string

Optional parentCommand

parentCommand: Command

permissionMessage

permissionMessage: false | MessageContent | GenericCheckFunction<MessageContent>

reactionButtonTimeout

reactionButtonTimeout: number

reactionButtons

reactionButtons: null | CommandReactionButtons[]

requirements

requirements: CommandRequirements

restartCooldown

restartCooldown: boolean

subcommandAliases

subcommandAliases: {}

Type declaration

  • [alias: string]: string

subcommands

subcommands: {}

Type declaration

usage

usage: string

Methods

cooldownCheck

cooldownExclusionCheck

executeCommand

permissionCheck

  • Parameters

    Returns Promise<boolean>

process

registerSubcommand

registerSubcommandAlias

  • registerSubcommandAlias(alias: string, label: string): void
  • Parameters

    • alias: string
    • label: string

    Returns void

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

unregisterSubcommand

  • unregisterSubcommand(label: string): void
  • Parameters

    • label: string

    Returns void

Generated using TypeDoc