zappyzep/backend/src/utils/readChannelPermissions.ts

12 lines
381 B
TypeScript
Raw Normal View History

2021-05-31 03:30:55 +02:00
import { Permissions } from "discord.js";
/**
* Bitmask of permissions required to read messages in a channel
*/
2021-05-31 03:30:55 +02:00
export const readChannelPermissions = Permissions.FLAGS.VIEW_CHANNEL | Permissions.FLAGS.READ_MESSAGE_HISTORY;
/**
* Bitmask of permissions required to read messages in a channel (bigint)
*/
export const nReadChannelPermissions = BigInt(readChannelPermissions);