For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  • null if the config could not be found.

  • config_json if the config was found.

Last updated