This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
0.1.3-beta
Pre-release
Pre-release
New Features
- Added parameter
platform
toEventListener.onPresenceUpdate()
- Implementation of premium app subscriptions
- Added struct
Application.Sku
- Added enum
Application.SkuType
- Added enum
Application.SkuFlag
- Added struct
Application.Entitlement
- Added enum
Application.EntitlementType
- Added property
Interaction.entitlements
- Added method
Interaction.respondWithPremiumRequired()
- Added enum case
InteractionCallbackType.premiumRequired
- Added method
Bot.createTestEntitlement()
- Added method
Bot.entitlements()
- Added method
Bot.skus()
- Added method
EventListener.onEntitlementCreate()
- Added method
EventListener.onEntitlementUpdate()
- Added method
EventListener.onEntitlementDelete()
- Added struct
Bug Fixes
- Fixed an issue where the bot would disconnect randomly after an arbitrary amount of time. With this fix, an additional layer of gateway disconnect protection has been added. The bot is now aware of if it did/did not receive a heartbeat ACK in response to a sent heartbeat, and will reconnect if a heartbeat ACK was not sent by Discord.
- Fixed an issue where if a Discord server outage occurred, upon the guild being available again, there was a possibility that its cached members in property
Guild.members
could be removed/replaced. - Fixed an issue where it was possible to have multiple heartbeats being sent simultaneously after a new gateway session was started due to an unlikely invalidated session.
Updated
- (Breaking Change) Removed
EventListener.onDisconnect()
- (Breaking Change) Parameter
activities
inEventListener.onPresenceUpdate()
is longer an optional type.