Table of Contents

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

bool

Remarks

The following event types are entirely immune to pruning: GUILD_CREATE, GUILD_DELETE, CHANNEL_CREATE, CHANNEL_DELETE, INTERACTION_CREATE, GUILD_MEMBERS_CHUNKREADY, RESUMED. All other events may be pruned if there is no user code handling them. Exercise caution with this option.