sb-filter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Discord.js Permission Handler

Handles Permission checking for you.

Example

    const Filter = require('sb-filter');
    const myFilter = new Filter([{
        name: 12012483274,
        type: 'member'
    }]);
    
    bot.on('message', (message) => {
        if(myFilter.ensure(message)) return message.reply('You cant access this command');
        messgae.reply('You can access this command');
    });

Readme

Keywords

none

Package Sidebar

Install

npm i sb-filter

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.03 MB

Total Files

33

Last publish

Collaborators

  • non-hacker