shuppet / raku-api-discord

Raku module for interacting with the Discord API.
https://shuppet.com
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Gateway Intents #50

Open kawaii opened 4 years ago

kawaii commented 4 years ago

When identifying to the gateway, you can specify an intents parameter which allows you to conditionally subscribe to pre-defined "intents", groups of events defined by Discord. If you do not specify a certain intent, you will not receive any of the gateway events that are batched into that group.

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

Speaking to another experienced library developer, their opinion was that if not specified the default should be to request all intents. It looks like intents use a similar bitwise system like permissions - so we can figure out the mask for "all" and provide some template masks in the documentation for common use cases (i.e. messages only).