mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
More work on permission utils and eager permission checks
This commit is contained in:
parent
8af64a6944
commit
6d4a7cdafd
11 changed files with 189 additions and 79 deletions
|
@ -3,5 +3,9 @@ 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);
|
||||
export const readChannelPermissions = Constants.Permissions.readMessages | Constants.Permissions.readMessageHistory;
|
||||
|
||||
/**
|
||||
* Bitmask of permissions required to read messages in a channel (bigint)
|
||||
*/
|
||||
export const nReadChannelPermissions = BigInt(readChannelPermissions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue