Skip to content

0.9.1 - Trajectory Correction

Compare
Choose a tag to compare
@jb3 jb3 released this 04 May 18:47
· 162 commits to master since this release
v0.9.1
2799a51

Welcome to Nostrum 0.9.1, code-named "Trajectory Correction".

image

We're proud to announce the latest all-American release of Nostrum 0.9.1, a
bugfix bonanza built with the spirit of liberty in mind. Covering bugfixes to
new features to countless documentation improvements, upgrade today to harness
the power of the American dream in your Discord applications.

Breaking Changes

  • Remove Nostrum.Api.get_token by @jchristgit in #569
    • As Nostrum moves to support multiple bots / library usage functionality like
      this is not desirable and as such as are removing features like this.
    • This field is set by the user anyway, so there are other methods to fetch
      this without depending on library functionality.
  • Implement memory optimizations in user struct by @jchristgit in #567
    • Removes automatic parsing of the flags attribute of User structs, but
      the Nostrum.Struct.User.Flags struct still exists to allow users to
      optionally parse this value themselves.
    • This change saves considerable storage in cache as we are now able to store
      the flags as the integer we receive them as from Discord instead of in a
      custom struct with a large number of attributes.
    • This PR also removes the mfa_enabled, verified and email attributes
      that would only be set with OAuth2. We do not expect anyone writing regular
      bots to have any dependence on these properties.

Features

  • Add missing fields from member API object by @jb3 in #573
    • Adds the pending, flags and avatar (custom guild avatar) attributes to
      Member struct
    • Also adds a helper method avatar_url/3 to the Member struct for fetching
      guild member custom avatars.
    • Adds a helper module Nostrum.Struct.Guild.Member.Flags for parsing flag
      values related to member onboarding.

Fixes

  • Re-support uploading files from memory by @jb3 in #560
  • Don't attempt to convert integers to atoms in map casting by @jb3 in #572
  • Only attempt resume if the gateway says we can by @jchristgit in #566
  • Drop session on invalid and unresumable session by @jchristgit in #580

Documentation and Debug

  • Add admonition documenting lack of DM channel caching by @jb3 in #561
  • Change command to component in documentation by @Awlexus in #568
  • Improve messages on shard resume by @jchristgit in #565
  • Update state docs with new QLC examples by @jb3 in #574
  • Add sample bot linked in issue #564 by @jchristgit in #575
  • Fix referenced function in example for create_global_application_command by @jchristgit in #577
  • Remove obsolete handle_event clause from example consumer by @jchristgit in #576
  • Log at INFO level when shard connection is up by @jchristgit in #581
  • Add cheat sheets by @jb3 in #559

Miscellaneous

  • Add OTP 27.0-rc3 to our test matrix by @jb3 in #562
    • In preparation of the release of OTP 27, we have added the latest release
      candidate to our test matrix in this PR to spot any potential teething
      issues with the upcoming release.
  • Update GitHub Action versions by @jb3 in #578
    • Stops a handful of node.js errors from appearing under the CI tab of all
      contributions to Nostrum
  • Version 0.9.1 Preparation by @jb3 in #579

Full Changelog: v0.9.0...v0.9.1