Skip to content

Releases: DiscordBM/DiscordBM

v1.0.0-beta.41 - Support for all slash-command managing endpoints

15 Mar 18:58
Compare
Choose a tag to compare

Full Changelog: v1.0.0-beta.40...v1.0.0-beta.41

New

Full support for all slash-command managing endpoints (create, edit, delete, overwrite etc...)

Breaking Changes

  • Existing slash-command managing endpoints have been reworked/renamed.
  • Rename guardDecodeError functions to decodeError.
  • DiscordHTTPErrorResponse.basStatusCode -> badStatusCode (typo)
  • rename Guild.userHasPermissions.userHasPermissions to memberHasPermissions.
  • Add a new Guild.userHasPermissions functions which truly acts based on a user and not a member.

Fixes/Refinements

  • Add missing validation call to ApplicationCommand (now it's RequestBody.ApplicationCommandCreate).
  • Fix a bug in DefaultDiscordClient caching logic.
  • Check threads too when checking for permissions using Guild.___HasPermissions functions.
  • Add library's user-agent to http requests.
  • A little bit better docs.

v1.0.0-beta.40

02 Mar 08:20
Compare
Choose a tag to compare
v1.0.0-beta.40 Pre-release
Pre-release

Breaking

  • Remove all unknown enum values to comply with Discord docs. 3e222e5
  • Rename KeywordPreset.sexual_content to sexualContent. f436931
  • Auto-Moderation types have had some updates to properly decode gateway event based on the latest Discord changes. f436931 5080f29 7630708
  • Remove DiscordGlobalConfiguration.enableLoggingDuringDecode and use a compilation flag instead. 2351524

Improvements

  • Better DiscordUtils.escapingSpecialCharacters(). 430dd29 33a55fb
  • Better validation logic for some types. 33474b9
  • Add a make-log-handler function to DiscordLogHandler. f512e04

Full Changelog: v1.0.0-beta.39...v1.0.0-beta.40

v1.0.0-beta.39

22 Feb 12:40
Compare
Choose a tag to compare
v1.0.0-beta.39 Pre-release
Pre-release

Breaking Changes

  • Rename DiscordUtils library to DiscordUtilities to avoid name collisions.
  • Rename Reaction.Error. cantRecognizeEmoji to cantConvertPartialEmoji.
  • Rename Gateway.CloseCode to GatewayCloseCode.
  • Rename guardIsSuccessfulResponse() to guardSuccess() in DiscordClient types.
  • Make ReactToRoleHandler's reactions of type Set instead of Array.
  • Rename Secret._storage to value.
  • Rename DiscordClientError to DiscordHTTPError.
  • Remove DiscordChannel.Flag.unknownValue10 case.

Improvements / Additions

  • Add new DiscordChannel.Message.Kind cases as well as a isDeletable property.
  • Add a new AuditLog.Entry.Mixed case.
  • Add suppressNotifications to DiscordChannel.Flag.
  • Add other missing fields.
  • Improve DiscordCache caching logic.
  • Conform a few missed Error types to LocalizedError.
  • Add a new guardDecodeError() function to DiscordClient types for better ability to recover from errors.
  • Add after query parameter to DiscordClient.getGuildAuditLogs().
  • Add a new DiscordClient.getCDNStorePageAsset() function + endpoint.

Full Changelog: v1.0.0-beta.38...v1.0.0-beta.39

v1.0.0-beta.38

17 Feb 20:33
ac3e415
Compare
Choose a tag to compare
v1.0.0-beta.38 Pre-release
Pre-release

Fixed

  • Swift 5.8 warnings (Xcode 14.3 beta 1)

Improvements

  • DefaultDiscordClient http requests now have a better checking process for sending request only after the rate-limit bucket allows.
  • Logs that talk about "will make a request in some seconds" or "will retry a request in some seconds" now have debug log level (previously warning).

Full Changelog: v1.0.0-beta.37...v1.0.0-beta.38

v1.0.0-beta.37

16 Feb 09:53
Compare
Choose a tag to compare
v1.0.0-beta.37 Pre-release
Pre-release

Better Release Notes

From this release forward, I'll make more detailed release notes.
The library is still in beta so it can have breaking changes, but I'll try to mention all breaking changes in release notes.

Breaking Changes

  • The library DiscordClient has been renamed to DiscordHTTP to avoid name conflicts between the DiscordClient library and the DiscordClient protocol.
  • DiscordClient.createApplicationGlobalCommand now accepts a payload of RequestBody.ApplicationCommandCreate. This payload better represents what you can send to Discord to create slash commands.
  • 3 types such as Interaction.Data.ApplicationCommand have been moved to Interaction. For example that type now exists at Interaction.ApplicationCommand.
  • DiscordCache.MessageCachingPolicy had a default case which has been reformed/renamed to normal.
  • ApplicationCommand has been cleaned up.

Fixes

  • Fixed a bug in LocalizedError.errorDescription of DiscordBM's Error types. Some descriptions did not have a needed trailing ).
  • RequestBody.InteractionResponse now doesn't encode/decode files using Codable, as it shouldn't.

News

  • All DiscordBM errors (excluding those related to WebSocketKitFork) are now LocalizedErrors and contain both errorDescription and helpAnchor. Read those whenever you encounter an error.
  • DiscordLogManager now defaults to sending a log-message every 10s. Previous value was every 20s.

Full Changelog: v1.0.0-beta.36...v1.0.0-beta.37

Fix incorrect interaction decoder typings + Add all thread endpoints + Better Error types + refinements

14 Feb 20:03
bcd4811
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.0-beta.35...v1.0.0-beta.36

`ReactToRoleHandler` + Better `DiscordLogger` + CDN and Reaction endpoints + Refinements

12 Feb 16:37
4dda552
Compare
Choose a tag to compare

`DiscordLogger` & `DiscordCache` refinements

07 Feb 08:44
13bc353
Compare
Choose a tag to compare

Add two missing gateway requests (update presence and voice-state)

06 Feb 19:20
Compare
Choose a tag to compare

General refinements

05 Feb 16:20
Compare
Choose a tag to compare
General refinements Pre-release
Pre-release