Releases: DiscordBM/DiscordBM
v1.0.0-beta.41 - Support for all slash-command managing endpoints
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 todecodeError
. DiscordHTTPErrorResponse.basStatusCode
->badStatusCode
(typo)- rename
Guild.userHasPermissions.userHasPermissions
tomemberHasPermissions
. - 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'sRequestBody.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
Breaking
- Remove all unknown enum values to comply with Discord docs. 3e222e5
- Rename
KeywordPreset.sexual_content
tosexualContent
. 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
Breaking Changes
- Rename
DiscordUtils
library toDiscordUtilities
to avoid name collisions. - Rename
Reaction.Error. cantRecognizeEmoji
tocantConvertPartialEmoji
. - Rename
Gateway.CloseCode
toGatewayCloseCode
. - Rename
guardIsSuccessfulResponse()
toguardSuccess()
inDiscordClient
types. - Make
ReactToRoleHandler
'sreactions
of typeSet
instead ofArray
. - Rename
Secret._storage
tovalue
. - Rename
DiscordClientError
toDiscordHTTPError
. - Remove
DiscordChannel.Flag.unknownValue10
case.
Improvements / Additions
- Add new
DiscordChannel.Message.Kind
cases as well as aisDeletable
property. - Add a new
AuditLog.Entry.Mixed
case. - Add
suppressNotifications
toDiscordChannel.Flag
. - Add other missing fields.
- Improve
DiscordCache
caching logic. - Conform a few missed
Error
types toLocalizedError
. - Add a new
guardDecodeError()
function toDiscordClient
types for better ability to recover from errors. - Add
after
query parameter toDiscordClient.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
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 (previouslywarning
).
Full Changelog: v1.0.0-beta.37...v1.0.0-beta.38
v1.0.0-beta.37
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
Fix incorrect interaction decoder typings + Add all thread endpoints + Better Error types + refinements
What's Changed
- feat: add [partial] thread APIs by @pontaoski in #32
- fix: correct issues in Interaction struct by @pontaoski in #31
New Contributors
- @pontaoski made their first contribution in #32
Full Changelog: v1.0.0-beta.35...v1.0.0-beta.36
`ReactToRoleHandler` + Better `DiscordLogger` + CDN and Reaction endpoints + Refinements
Full Changelog: v1.0.0-beta.34...v1.0.0-beta.35
`DiscordLogger` & `DiscordCache` refinements
Full Changelog: v1.0.0-beta.33...v1.0.0-beta.34
Add two missing gateway requests (update presence and voice-state)
Full Changelog: v1.0.0-beta.32...v1.0.0-beta.33
General refinements
Full Changelog: v1.0.0-beta.31...v1.0.0-beta.32