1.0.9 • Published 3 years ago

djs-perm-handler v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Permissions made easy!

A simple (yet kinda over-complicated) permission handler for Discord.JS v12!

Setup:

npm i djs-perm-handler

Usage:

const { Perms, parsePerm } = require("djs-perm-handler");
// example for checking if message author has permission "MANAGE_MESSAGES".
if (!message.member.hasPermission(Perms.MANAGE_MESSAGES)) return; // 0x0000002000 is used here.

// or we can parse the number to the string version of it's owner!
if (!message.member.hasPermission(parsePerm(Perms.MANAGE_MESSAGES))) return; // MANAGE_MESSAGES is used here.
(c) itsamedood 2021
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago