Constants
Useful global variables for discord bot development
When generating the project, the constants.json
file already comes with some information defined in it:
constants.json
In the code, this information can be accessed via the global variable constants
.
There's no need to import this variable from anywhere! It's registered at the beginning of the project:
You can add whatever information you want, remembering that this is static information.
constants.json
You can access type-safely in your code: