3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-26 02:35:03 +00:00
zeppelin/backend/src/utils/readChannelPermissions.ts
metal fda9a35f29
migrate permissions
Signed-off-by: GitHub <noreply@github.com>
2023-03-11 14:31:59 +00:00

12 lines
404 B
TypeScript

import { PermissionsBitField } from "discord.js";
/**
* Bitmask of permissions required to read messages in a channel
*/
export const readChannelPermissions =
PermissionsBitField.Flags.ViewChannel | PermissionsBitField.Flags.ReadMessageHistory;
/**
* Bitmask of permissions required to read messages in a channel (bigint)
*/
export const nReadChannelPermissions = BigInt(readChannelPermissions);