Skip to content
On this page

InhibitorsManager

Create an handler for bot inhibitors. The inhibitors can be in as many subfolders as desired and there may be other files exporting something else.

Constructor

js
new InhibitorsManager(client, options);
NameTypeDescriptionDefaultOptional
clientShewenyClientThe clientNoneNo
optionsBaseManagerOptionsOptions of the inhibitors managerNoneNo
Properties
Methods

Properties

client

The framework client.

Return : ShewenyClient

default

The default data of the inhibitors.

Return : InhibitorsManagerDefaultOption

directory

The directory of inhibitors.

Return : String

inhibitors

The collection of loaded inhibitors.

Return : Collection<Inhibitor>

Methods

loadAll()

Load all inhibitors in directory of inhibitors.

Return : Promise<Collection<Array<String>, Inhibitor>>

unloadAll()

Unload all inhibitors.

Return : void