mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-27 19:25:03 +00:00
Improve permission utils, make them bigint-aware
This commit is contained in:
parent
a404c7a97f
commit
8af64a6944
11 changed files with 97 additions and 34 deletions
7
backend/src/utils/readChannelPermissions.ts
Normal file
7
backend/src/utils/readChannelPermissions.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { Constants } from "eris";
|
||||
|
||||
/**
|
||||
* Bitmask of permissions required to read messages in a channel
|
||||
*/
|
||||
export const readChannelPermissions =
|
||||
BigInt(Constants.Permissions.readMessages) | BigInt(Constants.Permissions.readMessageHistory);
|
Loading…
Add table
Add a link
Reference in a new issue