Property EnableEventQueuePruning
- Namespace
- DSharpPlus.Net.Gateway
- Assembly
- DSharpPlus.dll
EnableEventQueuePruning
Toggles pruning the gateway event queue of user-unused events. This may reduce gateway back-pressure and memory costs, but may cause library cache to go stale quicker as only directly consumed events are processed.
public bool EnableEventQueuePruning { get; set; }Property Value
Remarks
The following event types are entirely immune to pruning: GUILD_CREATE, GUILD_DELETE, CHANNEL_CREATE,
CHANNEL_DELETE, INTERACTION_CREATE, GUILD_MEMBERS_CHUNK READY, RESUMED. All other events
may be pruned if there is no user code handling them. Exercise caution with this option.