summary refs log tree commit diff
path: root/src/util/Intents.ts
blob: b96f6af90f1fb1c01eeb3ec7276cf7f8fe61ba64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { BitField } from "./BitField";

export class Intents extends BitField {
	static FLAGS = {
		GUILDS: 1n << 0n,
		GUILD_MEMBERS: 1n << 1n,
		GUILD_BANS: 1n << 2n,
		GUILD_EMOJIS: 1n << 3n,
		GUILD_INTEGRATIONS: 1n << 4n,
		GUILD_WEBHOOKS: 1n << 5n,
		GUILD_INVITES: 1n << 6n,
		GUILD_VOICE_STATES: 1n << 7n,
		GUILD_PRESENCES: 1n << 8n,
		GUILD_MESSAGES: 1n << 9n,
		GUILD_MESSAGE_REACTIONS: 1n << 10n,
		GUILD_MESSAGE_TYPING: 1n << 11n,
		DIRECT_MESSAGES: 1n << 12n,
		DIRECT_MESSAGE_REACTIONS: 1n << 13n,
		DIRECT_MESSAGE_TYPING: 1n << 14n,
	};
}