V3L0C1T13S/reflectcord

Gateway intents

Opened this issue · 0 comments

Intents can be incredibly helpful for efficiency, and in the future could be used to ignore a lot of conversion for bots that don't need certain information anyway.

This issue focuses purely on making intents functional, and not on any internal optimizations (for now). Also, for future reference, Revolt plans on implementing event filters in the future, similar to intents, which we may want to use when available.

Privileged events on version < 8 will be enabled by default, unlike normal Discord where they need to be manually enabled on the dev portal, due to Revolt lacking native equivalents.

https://discord.com/developers/docs/topics/gateway#gateway-intents

  • GUILDS
  • GUILD_MEMBERS
  • GUILD_MODERATION
  • GUILD_EMOJIS_AND_STICKERS
  • GUILD_INTEGRATIONS
  • GUILD_WEBHOOKS
  • GUILD_INVITES
  • GUILD_VOICE_STATES
  • GUILD_PRESENCES
  • GUILD_MESSAGES
  • GUILD_MESSAGE_REACTIONS
  • GUILD_MESSAGE_TYPING
  • DIRECT_MESSAGES
  • DIRECT_MESSAGE_REACTIONS
  • DIRECT_MESSAGE_TYPING
  • MESSAGE_CONTENT
  • GUILD_SCHEDULED_EVENTS
  • AUTO_MODERATION_CONFIGURATION
  • AUTO_MODERATION_EXECUTION