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 toDiscordHTTP
to avoid name conflicts between theDiscordClient
library and theDiscordClient
protocol. DiscordClient.createApplicationGlobalCommand
now accepts a payload ofRequestBody.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 toInteraction
. For example that type now exists atInteraction.ApplicationCommand
. DiscordCache.MessageCachingPolicy
had adefault
case which has been reformed/renamed tonormal
.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/decodefiles
usingCodable
, as it shouldn't.
News
- All DiscordBM errors (excluding those related to
WebSocketKitFork
) are nowLocalizedError
s and contain botherrorDescription
andhelpAnchor
. 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