Class: BotModule

BotModule

Module Base class

Constructor

new BotModule()

Instantiates a Module
Source:

Members

bot

Discordie client
Source:

commands

Registered Commands
Source:

engine :FocaBotCore

The current FocaBotCore instance
Type:
Deprecated:
  • Yes
Source:

permissions :PermissionsManager

A reference to the PermissionsManager.
Type:
Deprecated:
  • Yes
Source:

Methods

registerCommand(name, options, func) → {BotCommand}

Registers a command.
Parameters:
Name Type Description
name string Command name.
options object Command options.
func function Command handler.
Source:
See:
Returns:
Type
BotCommand