@gcommands/plugin-blacklist
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

GCommands Plugin Blacklist

Official plugin for GCommands


NPM Banner


Installation

Install with npm / yarn / pnpm:

npm install @gcommands/plugin-blacklist
yarn add @gcommands/plugin-blacklist
pnpm add @gcommands/plugin-blacklist

Informations

// index.js / LruCache Provider (recommended)
const { Plugins, GClient } = require('gcommands');
const { MongoDBProvider } = require('gcommands/dist/providers/MongoDBProvider');

const client = new GClient({
    database: new MongoDBProvider(process.env.mongodb_uri);
})

Plugins.search(__dirname);
const { BlacklistManager } = require('@gcommands/plugin-blacklist');

BlacklistManager.setBlacklist(client, userId, true); // blacklisted
BlacklistManager.setBlacklist(client, userId, false); // unblacklisted

If you have inhibitors in command, you need add new BlacklistInhibitor();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    2
    • latest

Version History

Package Sidebar

Install

npm i @gcommands/plugin-blacklist

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

7.25 kB

Total Files

9

Last publish

Collaborators

  • xhyrom