Module
Module Object
setToggled
Sets the module to a new toggled state.
Parameter | Type | Description |
state | Boolean | The new state of the module |
toggle
Toggles the module
toggleSilent
Toggles the module without sending a notification
isEnabled
Returns true if the module is enabled
setKey
Sets the keybind to the new keycode
Parameter | Type | Description |
code | Number | The new keybind code of the module |
getName
Returns the name of the module as a String
getDescription
Returns the description of the module as a String
getKeybindCode
Returns the current code of the keybind for the module as a Number
Get Settings
These functions allow for getting settings within the module
The only parameter is the setting name and it returns its respective setting object
Will return null if the setting does not exist
Last updated