Skip to content

0.2.1

Compare
Choose a tag to compare
@SpaceEEC SpaceEEC released this 21 Nov 13:30
0.2.1
66752b8

Deprecations

  • The through Rest.__using__/1 injected request/2 and request!/2 are now deprecated in favor of their single arity counter parts [b84ed09]
  • c:Rest.get_guild_vanity_url is now deprecated in favor of c:Rest.get_guild_vanity_invite [9b6dc0b]

Fixes

  • Convert data to a map in Rest.Functions.create_message/2,3 [bee289c]
  • Fix invalid typespecs of t:Util.channel_position_resolvable/0 and t:Rest.modify_guild_emoji_data /0 [1d96805]
  • Handle non-JSON responses properly [6c23b5f]
  • Make reason nilable and optional everywhere [5ccb48b]
  • Use :patch when editing the current user via modify_current_user/1 [23deae3]
  • roles in emoji creating and editing functions are now actually optional [c0f2724]
  • Use :patch in modify_current_user/1 [23deae3]
  • Allow c:Rest.get_current_user_guilds/1 to be called as /0 and query-string the parameters [fed13ad]
  • t:Rest.create_message_data/0's nonce can be negative or a string [185075f]
  • Satisfy / Silence the dialyzer everywhere [b7fd6ba...00a553b]

Features

  • Use new X-RateLimit-Reset-After header with millisecond X-RateLimit-Precision [d8c9c82]
    This removes the need to calculate the time offset to Discord's servers and therefore also :timex.
    This also removes the need to hard code sub second rate limits (was only done for creating reactions).
  • Add c:Rest.get_current_user/0 to fetch the current user [fcc7474]
  • Add transform option to Rest.__using__ to allow obtaining untransformed data [b644f9f]
  • Allow String.t snowflakes being used by using the new resolvables from Crux.Structs [33e5301]
  • Add c:Rest.get_guild_vanity_invite/1 [9b6dc0b]
  • Document flags property of t:Rrest.message_edit_data/0 allowing to (un-)suppress embeds [dda771f]

Dependencies