You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

betterdiscord-plugin-banners

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

betterdiscord-plugin-banners

Library to assist in creating banners for BetterDiscord plugins

1.1.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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;

Keywords

betterdiscord

FAQs

Package last updated on 29 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts