Use discord names for intents

This commit is contained in:
Rory& 2025-07-06 20:16:29 +02:00
parent 441dd3ddcd
commit 997bdbc634

View File

@ -22,22 +22,22 @@ export class Intents extends BitField {
static FLAGS = {
GUILDS: BigInt(1) << BigInt(0), // guilds and guild merge-split events affecting the user
GUILD_MEMBERS: BigInt(1) << BigInt(1), // memberships
GUILD_BANS: BigInt(1) << BigInt(2), // bans and ban lists
GUILD_EMOJIS: BigInt(1) << BigInt(3), // custom emojis
GUILD_MODERATION: BigInt(1) << BigInt(2), // bans and ban lists
GUILD_EXPRESSIONS: BigInt(1) << BigInt(3), // custom emojis
GUILD_INTEGRATIONS: BigInt(1) << BigInt(4), // applications
GUILD_WEBHOOKS: BigInt(1) << BigInt(5), // webhooks
GUILD_INVITES: BigInt(1) << BigInt(6), // mass invites (no user can receive user specific invites of another user)
GUILD_VOICE_STATES: BigInt(1) << BigInt(7), // voice updates
GUILD_PRESENCES: BigInt(1) << BigInt(8), // presence updates
GUILD_MESSAGES_METADATA: BigInt(1) << BigInt(9), // guild message metadata
GUILD_MESSAGES: BigInt(1) << BigInt(9), // guild message metadata
GUILD_MESSAGE_REACTIONS: BigInt(1) << BigInt(10), // guild message reactions
GUILD_MESSAGE_TYPING: BigInt(1) << BigInt(11), // guild channel typing notifications
DIRECT_MESSAGES: BigInt(1) << BigInt(12), // DM or orphan channels
DIRECT_MESSAGE_REACTIONS: BigInt(1) << BigInt(13), // DM or orphan channel message reactions
DIRECT_MESSAGE_TYPING: BigInt(1) << BigInt(14), // DM typing notifications
GUILD_MESSAGES_CONTENT: BigInt(1) << BigInt(15), // guild message content
GUILD_POLICIES: BigInt(1) << BigInt(20), // guild policies
GUILD_POLICY_EXECUTION: BigInt(1) << BigInt(21), // guild policy execution
AUTO_MODERATION_CONFIGURATION: BigInt(1) << BigInt(20), // guild policies
AUTO_MODERATION_EXECUTION: BigInt(1) << BigInt(21), // guild policy execution
LIVE_MESSAGE_COMPOSITION: BigInt(1) << BigInt(32), // allow composing messages using the gateway
GUILD_ROUTES: BigInt(1) << BigInt(41), // message routes affecting the guild
DIRECT_MESSAGES_THREADS: BigInt(1) << BigInt(42), // direct message threads