Skip to content

plugin.config (developer guide) ​

Per-plugin JSON config backed by conf.

Initialize

ts
this.config.init({
  defaults: { enabled: true, retries: 3 }
});

Use

ts
this.config.set('token', 'abc');
const token = this.config.get<string>('token');

Best practices

  • Call init in onLoad
  • Use object set({ ... }) for grouped updates