Configs
This page explains how to work with the internal Config API.
Config API
This is one of the simplest parts of the documentation. There is not much you need to do with configs directly, but here is how to import one:
// Plugin configs
const config = this.heart.core.discord.core.config.manager.get('<config_name>').get();
// Common config
const commonConfig = this.heart.core.config.common.get();This returns:
nullif the config could not be found.config_jsonif the config was found.
Last updated