Releases: amatsagu/tempest
Releases · amatsagu/tempest
v1.2.1
What's Changed
- Updated makefile & bumped required Go version,
- Modified
InteractionDataResolved
struct to follow latest Discord API docs, - Added
LAUNCH_ACTIVITY_RESPONSE_TYPE
to supported interaction response types, - Added support to resolve channel, message, and attachment,
- Switch camel case to upper snake case for constant values,
- Added min & max length fields to generic
Component
struct,
New Contributors
- @nicocesar made their first contribution in #27
- @KennySchl made their first contribution in #28
- @waits made their first contribution in #30
- @shannon-feng made their first contribution in #32
Full Changelog: v1.2.0...v1.2.1
v1.2.0
This release was not called v1.1.7 as it contains BREAKING changes for existing codebases!
What's Changed
- Updated minimal required version of Go to v1.22.0,
- Removed custom launching methods and just exposed http handler - see example,
- Fixed few small bugs (improved some error handlers, always close request body no matter the result, etc.),
- Fixed major bug - thanks to @nicocesar, rest client will now properly return any errors,
- Updated User struct by
GlobalName
field, - Improved Role struct:
- Added
Mention()
method, - Fixed
IconURL()
method not checking for animated icons - it will now properly handle gifs, - Updated RoleTag struct for
Tags
field (official documentation for them was released),
- Added
- Fixed few reported typos in error messages and flag names,
- Slightly optimized RestClient requests,
- Added support for sending multipart data in requests:
- Tempest now supports sending any file type to Disord,
- Added few help methods to client and interations for easier attaching files,
- Deprecated request method check when processing requests supposedly coming from Discord API - it's recommended to use new Go's v1.22 std/http method validation,
- Modified client command registry to always bind ApplicationID to loaded commands (more aesthetic change, changes nothing in fuctionality),
Full Changelog: v1.1.6...v1.2.0
v1.1.6
What's Changed
- Fixed invalid type definition for
ComponentInteractionData
struct - Added back
client#Hijack
method (that I had to remove previously by mistake...)
New Contributors
Full Changelog: v1.1.5...v1.1.6
v1.1.5
What's Changed
- Added ability to send empty arrays to Discord API which allows for much better control over embeds and components.
- This solves issue embeds/components being impossible to hide when editing message/reply.
Full Changelog: v1.1.4...v1.1.5
v1.1.4
What's Changed
- Fixed all bugs found since previous version,
- Added enum types for localization (full language support),
- Added post command hook,
- After talks on Discord Gophers server - deducted to pass all structs as values by default and only use pointers where object is used more than once,
- & probably more but it's Christmas and I don't remember now 🎅
Full Changelog: v1.1.3...v1.1.4
v1.1.3
What's Changed
- Fixed very rare bug in rest controller that could [read] lock goroutine,
- Deleted
sonnet
package - from now we gonna just rely on whatever gostd
has to offer,- I've noticed on my main discord bot that it sometimes failed at fetching user/member data from resolved mentions
- Made Rest & Client constructors more flexible,
- Fixed some of client's methods related message control thanks to @stein-f,
- Created library logo/icon & experimental banner,
- Updated example bot source code,
- Added basic bot token validation
Full Changelog: v1.1.2...v1.1.3
Tempest v1.1.2
What's Changed
- Replaced
goccy/go-json
back with updatedsonnet
due to json parsing bug & unexpected memory usage
Yes... This mini update only provides patches to found issues.
Full Changelog: v1.1.1...v1.1.2
Tempest v1.1.1
What's Changed
- Replaced
sonnet
withgoccy/go-json
due to still unknown bug on go 1.21, more info on here, - Bumped required go version to 1.21
Additinally tested entire codebase & confirmed it's up to date with Discord API.
Full Changelog: v1.1.0...v1.1.1
Tempest v1.1.0
What's Changed
- Improved a lot of structs (especially components),
- Linked each discord structs to corresponding entry in discord docs,
- Added unit tests for about 1/3 codebase (will get better in future),
- Added full support for modals,
- Fixed very rare race condition that happened when 2 or more goroutines tries to read (dynamic) component handler,
- Added support for static component & modal handlers. Static handlers are registered like commands before bot/app launch and works globally, for any interaction matching custom id. It doesn't use channels, has no timeout and doesn't store any state in cache,
- Improved interaction methods to be easier to use,
- Added more control when constructing new Rest client,
- Renamed multiple fields and methods in many places to make them more unified,
- Removed
Client#User
struct property, - Reduced how much is exposed inside each interaction,
- Modified license,
- And more!
Full Changelog: v1.0.5...v1.1.0
Tempest v1.0.5
What's Changed
- Added TLS support by @chiyoi in #6
- Replaced encoding/json with much faster sonnet package (drop-in)
- Fixed some typings
- Deprecated
User#Discriminator
- read https://discord.com/blog/usernames.
New Contributors
Full Changelog: v1.0.4...v1.0.5