Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bot

Hierarchy

  • Bot

Index

Properties

client

client: any = new Discord.Client()

Discord.js Client

commands

commands: Array<CommandBase> = []

Array of Command Class References

Methods

getCommandByEvent

getCommandByName

  • Retrieves a registered command by it's name.

    Parameters

    • name: string

      Name of the command.

    Returns CommandBase

handleEvent

handleMessage

preCommand

register

  • Called by the @Command decorated classes

    Parameters

    Returns void

runCommand

runEvent

start

  • start(): void

Generated using TypeDoc