Namespace to manage. A namespace is an ID (for example, the ID of a plugin) that uniquely identifies it.
All settings are grouped into namespaces.
Settings for a namespace are stored in settings/NAMESPACE.json
within the Replugged data folder.
Optional
defaultSettings: Partial<T>Default values for the settings in the namespace. These will be used if no value is set for a setting. Using the fallback
parameter of get() will override these defaults.
Manager for the namespace.
Creates, initializes, and returns a SettingsManager for the given settings namespace. If a manager for the namespace already exists, then that instance will be returned. Use this function rather than creating instances of
SettingsManager
directly.Settings are stored synchronously in the window, and updates are dispatched asynchronously to the file system. See SettingsManager for more information on how this works.
Here's an example of how to use this in a plugin: