Plugin

Overview

Methods
load

Methods

• load()

Returns: void

ParameterType
managerManager

Example

const { Manager } = require("magmastream");
const MyPlugin = require("my-magmastream-plugin");

const manager = new Manager({
  plugins: [new MyPlugin({ foo: "bar" })],
});
const { Plugin } = require("magmastream");

module.exports = class MyPlugin extends Plugin {
  constructor(options) {
    super();
    this.options = options; // will be { foo: 'bar' }
  }

  load(manager) {}
};
Table of Contents