Environment variables

Environment variables serve the purpose of storing secrets like the database password, the app secret, or an API key outside of your application codebase.

In addition, environment variables can be used to obtain different configurations depending on the environment, such as the use of a secret to use an API or database identifiers.

Note

Please read the full documentation of the environment in the dedicated section.


We’re providing an Environment class to access the various environment variables in your application.

DART_ENV=development
TOKEN=your_token
DISCORD_REST_API_VERSION=10
DISCORD_WS_VERSION=10
INTENT=3276799
LOG_LEVEL=TRACE