Skip to content

v1.2.0

Choose a tag to compare

@amatsagu amatsagu released this 10 Mar 19:41
e5792db

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