Implemented guild subscriptions
Created by: Neuheit
Summary
Implemented guild subscriptions, fixes #487 (closed).
Details
This would allow clients to decide whether to allow typing and presence events to be sent over the gateway, which as discussed in issue #487 (closed) not only can improve bandwidth, but also can significantly reduce memory usage due to not caching those event objects.
Changes proposed
- Added this as a new boolean property to
DiscordConfiguration
, which defaults to true. - Made the debug logger post a warning about setting this property to false, which could cause cache issues.
- Internally added this property to be sent in the identify payload.