Skip to content

v1.0.0-beta.37

Pre-release
Pre-release
Compare
Choose a tag to compare
@MahdiBM MahdiBM released this 16 Feb 09:53
· 417 commits to main since this 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