-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Summary
Provide a simpler way to configure Discord intents without requiring developers to manually calculate the intent number.
Details
Current implementation requires developers to compute the numeric bitmask for intents.
This is error‑prone and less intuitive, especially for newcomers.
Proposal: Introduce a higher‑level API to declare intents directly, similar to discord.py.
Client(intents=[GatewayIntentBits.Guilds, GatewayIntentBits.Members])Benefits:
- Easier and more explicit configuration.
- Reduces mistakes from manual bitmask math.
- Aligns with familiar patterns from other frameworks.
- Improves developer experience and onboarding.
Additional Notes / References
- https://discord.js.org/docs/packages/discord.js/14.24.2/GatewayIntentBits:Enum
- https://discordpy.readthedocs.io/en/stable/api.html?highlight=intents#discord.Intents
Pre‑Work Checklist
- No existing issue covers this work.
Metadata
Metadata
Assignees
Labels
No labels