Skip to content
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
Compare
Choose a tag to compare
@Defxult Defxult released this 08 Oct 16:51
· 16 commits to main since this release

New Features

  • Added parameter platform to EventListener.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()

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 in EventListener.onPresenceUpdate() is longer an optional type.