client.setConfig

Sets the value of a key setting item from the config.json.

Parameter
Type
Description

group

String

Name of the group

subGroup

String

Name of the sub-group or "none"

key

String

Config field you intend to change

value

Any

The new value you want to set it to

Example Usage

C:\Users\{user}\AppData\Roaming\nix\config.json
{
   ...
   "customize": {
      ...
      "title": "Nix",
      ...
   }
   ...
}
execute(client, message, args) {
   client.setConfig("customize", "none", "title", client.config.customize.title);
},

Last updated