Module
A module for commands
Static Method Summary
| Static Public Methods | ||
| public static |
Checks if a module is enabled on a guild |
|
| public static |
setEnabled(settings: SettingStorage, guild: Guild | string, module: Module | string, enabled: boolean) Enables or disables a module on a guild |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
Checks if the module is enabled on a guild |
|
| public |
setEnabled(guild: Guild | string, enabled: boolean) Enables or disables the module on a guild |
|
Static Public Methods
public static isEnabled(settings: SettingStorage, guild: Guild, module: Module | string): boolean source
Checks if a module is enabled on a guild
Params:
| Name | Type | Attribute | Description |
| settings | SettingStorage | The setting storage to use |
|
| guild | Guild | The guild |
|
| module | Module | string | The module or module ID |
See:
Public Constructors
public constructor(bot: Bot, id: string, name: string, hide: boolean, commands: Command[]) source
Params:
| Name | Type | Attribute | Description |
| bot | Bot | The bot the module is for |
|
| id | string | The ID for the module |
|
| name | string |
|
The name of the module |
| hide | boolean |
|
Whether or not to hide from the module list, and not allow disabling |
| commands | Command[] |
|
The commands that the module contains |