Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Docs, Cleanup, Tooling

Compare
Choose a tag to compare
@b1naryth1ef b1naryth1ef released this 01 Jun 22:13
· 192 commits to master since this release

This release brings a lot of needed updates to tooling, documentation, and the general flow/API.

Breaking

  • Rewrite the majority of the storage module. This includes an entirely new interface.

Tooling

  • Documentation w/ Biblio - This is very much an initial stab at a problem that requires much more work and effort, but for now there are at least some docs that can be parsed by a human.
  • Travis CI - CI and testing mean we will hopefully have less issues with breaking folks stuff. This also has a long way to go.

API

  • channels_messages_create / channels_messages_modify now support message sanitization via the new module disco.util.sanitize. Most users will want to flip this on for any messages that contain user-generated or passed content.
  • Added support for multiple attachments when sending messages. This deprecates the attachment kwarg in favor of an attachments kwarg, holding an array of attachments.
  • channels_messages_reactions_get supports pagination
  • Added guilds_invites_list
  • Added users_me_guilds_delete
  • Move to API v7, which includes new errors array. Can be viewed within an APIException via the errors property. This also includes an update to the exception message format.
  • Complete implementation of Client.update_presence
  • Add support for NSFW channels
  • Added various new fields and functions to Guild type
  • Message.create_reaction renamed to (the previous version being deprecated) Message.add_reaction

Bot

  • Refactor of the way we implemented command groups. This fixes various errors and removes the hard cap of 100 commands.

ETC

  • Add log-level CLI flag
  • GatewayClient now keeps some state which allows introspection of resumes (and the number of events replayed)
  • Various fixes to state tracking

Obviously the above is a non-exhaustive list, this release included a ton of bug fixes and issues related to voice and other components.