@joner/discord-bitfield-calculator
v1.0.3
Published
input your discord bitfield and it will return an array of the permission names
Downloads
3
Readme
Calculate Discord Bitfield or Permissions
Usage
import {
genPermissions,
genBitfield,
} from "@joner/discord-bitfield-calculator";
genPermissions(0x0000000000000001); // => ["CREATE_INSTANT_INVITE"]
genBitfield("CREATE_INSTANT_INVITE"); // => 0x1