Skip to content

Conversation

@AdzAhm
Copy link

@AdzAhm AdzAhm commented Feb 9, 2026

This PR adds minimal event subscriptions for privileged gateway intents that are already enabled (GatewayIntents.All).

Discord.Net emits warnings when privileged intents (Presence, Guild Invites, Guild Scheduled Events) are requested but no corresponding events are subscribed to. While this does not affect functionality, it results in noisy gateway logs.

Changes

Registered no-op handlers for:

PresenceUpdated

Guild Scheduled Events (created / updated / deleted)

Guild Invites (created / deleted)

No behavioral or functional logic was added

Existing intent configuration remains unchanged

Motivation

Removes misleading gateway warnings

Keeps full intent access for future features

Improves log clarity without impacting performance

This change is especially useful for DiscordLab as a framework/plugin where not all intent-driven features are always used immediately.

Notes

Handlers are intentionally empty and return Task.CompletedTask

No breaking changes

Register minimal event listeners for privileged Discord gateway intents
that are already enabled via GatewayIntents.All.

This silences Discord.Net warnings for unused Presence, Guild Invites,
and Guild Scheduled Events intents without changing behavior.
added some notes
Copy link
Member

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What in the AI generated slop?

@AdzAhm
Copy link
Author

AdzAhm commented Feb 10, 2026

I just tols the AI what to do lol it changed the whole code/ improved it ( might remove it and make my own changes after looking at it ) but still this removes the gateway spam warnings ill make another pull request no AI lol

@AdzAhm AdzAhm closed this Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants