1.1.0 • Published 2 years ago

betterdiscord-plugin-banners v1.1.0

Weekly downloads
-
License
LICENSE.txt
Repository
github
Last release
2 years ago

BetterDiscord Plugin Banners Library

Library to assist in displaying a top banner bar for BetterDiscord plugins.

NPM

Full Documentation: https://notmike101.github.io/betterdiscord-plugin-banners/

Installation

npm install betterdiscord-plugin-banners

Usage

This plugin should be compatible with both ESM and CJS.

To display a banner, use the createBanner method.

Example

CJS

const { Banners } = require('betterdiscord-plugin-banners');

class Plugin {
  load() {
    this.banners = new Banners();
  }

  start() {
    this.banners.createBanner('This is a banner', {
      acceptCallback: () => { console.log('Accepted!' )},
    });
  }
}

module.exports = Plugin;

ESM

import { Banners } from 'betterdiscord-plugin-banners';

class Plugin {
  load() {
    this.banners = new Banners();
  }

  start() {
    this.banners.createBanner('This is a banner', {
      acceptCallback: () => { console.log('Accepted!' )},
    });
  }
};

export default Plugin;
1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago