Class

Settings

Settings()

Static class handling the mod settings

Constructor

# new Settings()

Do NOT instantiate settings

Deprecated:
  • Yes

View Source classes/settings.ts, line 6

Error

Classes

Settings

Methods

# async static get(setting, ctx) → {Promise.<string>}

Gets the setting from database

Parameters:
Name Type Description
setting string
ctx RequestContext

View Source classes/settings.ts, line 73

Promise.<string>

# async static set(setting, value, ctx) → {Promise.<void>}

Sets the setting

Parameters:
Name Type Description
setting string
value string
ctx RequestContext

View Source classes/settings.ts, line 83

Promise.<void>