Discord.js Bot Gateway and OAuth2 User Auth: Integrating Least-Privilege Intent Enforcement
When building a Discord.js application, developers rely on gateway intents to enforce least‑privilege access for bot events and on the OAuth2 client to obtain user access tokens that act on behalf of users. The library currently filters gateway payloads based on the declared intents set at login, but it does not provide a runtime mechanism to verify that tho