Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Command

Hierarchy

  • Command

Index

Constructors

constructor

Properties

aliases

aliases: string[]

argsRequired

argsRequired: boolean

caseInsensitive

caseInsensitive: boolean

cooldown

cooldown: number

cooldownExclusions

cooldownExclusions: { channelIDs?: undefined | string[]; guildIDs?: undefined | string[]; userIDs?: undefined | string[] }

Type declaration

  • Optional channelIDs?: undefined | string[]
  • Optional guildIDs?: undefined | string[]
  • Optional userIDs?: undefined | string[]

cooldownMessage

cooldownMessage: string | boolean | GenericCheckFunction<string>

cooldownReturns

cooldownReturns: number

defaultSubcommandOptions

defaultSubcommandOptions: CommandOptions

deleteCommand

deleteCommand: boolean

description

description: string

dmOnly

dmOnly: boolean

errorMessage

errorMessage: string | GenericCheckFunction<string>

fullDescription

fullDescription: string

guildOnly

guildOnly: boolean

hidden

hidden: boolean

hooks

hooks: Hooks

invalidUsageMessage

invalidUsageMessage: string | boolean | GenericCheckFunction<string>

label

label: string

Optional parentCommand

parentCommand: undefined | Command

permissionMessage

permissionMessage: string | boolean | GenericCheckFunction<string>

reactionButtonTimeout

reactionButtonTimeout: number

reactionButtons

reactionButtons: null | { emoji: string; execute?: undefined | (() => string); response: CommandGenerator; responses?: undefined | (() => string)[]; type: string }[]

requirements

requirements: { custom?: undefined | GenericCheckFunction<void>; permissions?: undefined | {} | GenericCheckFunction<{}>; roleIDs?: undefined | string[] | GenericCheckFunction<string[]>; roleNames?: undefined | string[] | GenericCheckFunction<string[]>; userIDs?: undefined | string[] | GenericCheckFunction<string[]> }

Type declaration

restartCooldown

restartCooldown: boolean

subcommandAliases

subcommandAliases: {}

Type declaration

subcommands

subcommands: {}

Type declaration

usage

usage: string

Methods

registerSubcommand

registerSubcommandAlias

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

    • alias: string
    • label: string

    Returns void

toString

  • toString(): string
  • Returns string

unregisterSubcommand

  • unregisterSubcommand(label: string): void
  • Parameters

    • label: string

    Returns void

Generated using TypeDoc