diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 22:01:01 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 22:01:01 +0100 |
commit | ea41892fef208b10c1bb322de7683c39ebab3dd5 (patch) | |
tree | f26559c73196591ac0338a21908a25c806276a7a /src/util/Intents.ts | |
parent | Move Models/Schemas to server-util (diff) | |
download | server-ea41892fef208b10c1bb322de7683c39ebab3dd5.tar.xz |
:wrench: build
Diffstat (limited to 'src/util/Intents.ts')
-rw-r--r-- | src/util/Intents.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/util/Intents.ts b/src/util/Intents.ts new file mode 100644 index 00000000..b96f6af9 --- /dev/null +++ b/src/util/Intents.ts @@ -0,0 +1,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, + }; +} |