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);
Name | Type | Description | Default | Optional |
---|---|---|---|---|
client | ShewenyClient | The client | None | No |
options | BaseManagerOptions | Options of the inhibitors manager | None | No |
Properties
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