Options
Modules
  • Command
  • Localization
  • Logger
All
  • Public
  • Public/Protected
  • All
Menu

Cache for all Commands your client will use

Hierarchy

  • CommandCache

Index

Methods

Methods

Static add

  • add(commandClass: () => Command<Client>): void
  • Adds a Command to the cache. Pass the Command child class itself and an instance will be created and cached

    Parameters

    Returns void

Static all

Static get

  • get(ident: string): undefined | Command<Client>
  • Returns a Command from the cache using the given identifier. Can be the Command name or an alias

    Parameters

    • ident: string

    Returns undefined | Command<Client>

Static has

  • has(ident: string): boolean
  • Returns whether or not the cache has the given identifier. Can be command name or alias

    Parameters

    • ident: string

    Returns boolean

Generated using TypeDoc