Class: ModuleManager

ModuleManager()

Manages the modules.

Constructor

new ModuleManager()

Source:

Members

loaded

Currently loaded modules
Source:

Methods

(async) disableForGuild(guild, mod)

Disables a module only in a specific guild
Parameters:
Name Type Description
guild Discord.Guild
mod string | BotModule Module name or instance
Source:

(async) enableForGuild(guild, mod)

Enables a module only in a specific guild
Parameters:
Name Type Description
guild Discord.Guild
mod string | BotModule Module name or instance
Source:

(async) isDisabledForGuild(guild, mod)

Checks if a module is disabled in a guild.
Parameters:
Name Type Description
guild Discord.Guild
mod string | BotModule Module name or instance
Source:

load(modules)

Loads the specified modules.
Parameters:
Name Type Description
modules Array.<string> Modules to load
Source:

reload(modules)

Reloads the specified modules.
Parameters:
Name Type Description
modules Array.<string> Modules to load
Source:

unload(modules)

Unloads the specified modules.
Parameters:
Name Type Description
modules Array.<string> Modules to unload
Source: