Methods
static getAmpConfig(client) → {Promise.<AmpConfig>}
This method returns the amp config. You might want to memoize this, similar to the below
const ampConfig = config.memoizeAsync("amp-config", async () => await AmpConfig.getAmpConfig(client))
Parameters:
Name | Type | Description |
---|---|---|
client |
Client |
asJson()
Use this to convert to a simple javascript object, suitable for JSON.