Skip to content

Releases: amatsagu/tempest

v1.2.1

10 Oct 21:35
Compare
Choose a tag to compare

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

Full Changelog: v1.2.0...v1.2.1

v1.2.0

10 Mar 19:41
e5792db
Compare
Choose a tag to compare

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),
  • 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

06 Feb 13:04
Compare
Choose a tag to compare

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

31 Dec 12:29
Compare
Choose a tag to compare

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

24 Dec 14:19
Compare
Choose a tag to compare

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

26 Nov 19:49
25af2d1
Compare
Choose a tag to compare

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 go std 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

image

Tempest v1.1.2

23 Sep 11:27
Compare
Choose a tag to compare

What's Changed

Yes... This mini update only provides patches to found issues.

Full Changelog: v1.1.1...v1.1.2

Tempest v1.1.1

30 Aug 17:12
Compare
Choose a tag to compare

What's Changed

  • Replaced sonnet with goccy/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

23 May 20:39
c0ab005
Compare
Choose a tag to compare

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

06 May 21:00
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @chiyoi made their first contribution in #6

Full Changelog: v1.0.4...v1.0.5