Skip to content

Latest commit

 

History

History
1226 lines (945 loc) · 64 KB

old_changelog.rst

File metadata and controls

1226 lines (945 loc) · 64 KB
orphan:
.. currentmodule:: discord

Changelog

This page keeps a detailed human-friendly rendering of what's new and changed in specific versions.

Attention!

This page is no longer maintained. For an updated changelog for version 2.0+, please check out our :doc:`new changelog <changelog>` instead.

v2.0.0

v1.7.3

Bug Fixes

v1.7.2

Bug Fixes

v1.7.1

Bug Fixes

v1.7.0

This version is mainly for improvements and bug fixes. This is more than likely the last major version in the 1.x series. Work after this will be spent on v2.0. As a result, this is the last version to support Python 3.5. Likewise, this is the last version to support user bots.

Development of v2.0 will have breaking changes and support for newer API features.

New Features

Bug Fixes

Miscellaneous

  • User endpoints and all userbot related functionality has been deprecated and will be removed in the next major version of the library.
  • :class:`Permission` class methods were updated to match the UI of the Discord client (:dpy-issue:`6476`)
  • _ and - characters are now stripped when making a new cog using the discord package (:dpy-issue:`6313`)

v1.6.0

This version comes with support for replies and stickers.

New Features

Bug Fixes

Miscellaneous

v1.5.1

Bug Fixes

Miscellaneous

v1.5.0

This version came with forced breaking changes that Discord is requiring all bots to go through on October 7th. It is highly recommended to read the documentation on intents, :ref:`intents_primer`.

API Changes

  • Members and presences will no longer be retrieved due to an API change. See :ref:`privileged_intents` for more info.
  • As a consequence, fetching offline members is disabled if the members intent is not enabled.

New Features

Bug Fixes

Miscellaneous

  • Webhook requests are now logged (:dpy-issue:`5798`)
  • Remove caching layer from :attr:`AutoShardedClient.shards`. This was causing issues if queried before launching shards.
  • Gateway rate limits are now handled.
  • Warnings logged due to missed caches are now changed to DEBUG log level.
  • Some strings are now explicitly interned to reduce memory usage.
  • Usage of namedtuples has been reduced to avoid potential breaking changes in the future (:dpy-issue:`5834`)
  • |commands| All :class:`BadArgument` exceptions from the built-in converters now raise concrete exceptions to better tell them apart (:dpy-issue:`5748`)
  • |tasks| Lazily fetch the event loop to prevent surprises when changing event loop policy (:dpy-issue:`5808`)

v1.4.2

This is a maintenance release with backports from :ref:`vp1p5p0`.

Bug Fixes

Miscellaneous

v1.4.1

Bug Fixes

v1.4.0

Another version with a long development time. Features like Intents are slated to be released in a v1.5 release. Thank you for your patience!

New Features

Bug Fixes

Miscellaneous

v1.3.4

Bug Fixes

  • Fix an issue with channel overwrites causing multiple issues including crashes (:dpy-issue:`5109`)

v1.3.3

Bug Fixes

  • Change default WS close to 4000 instead of 1000.
    • The previous close code caused sessions to be invalidated at a higher frequency than desired.
  • Fix None appearing in Member.activities. (:dpy-issue:`2619`)

v1.3.2

Another minor bug fix release.

Bug Fixes

v1.3.1

Minor bug fix release.

Bug Fixes

Miscellaneous

  • Fix compatibility warnings when using the Python 3.9 alpha.
  • Change the unknown event logging from WARNING to DEBUG to reduce noise.

v1.3.0

This version comes with a lot of bug fixes and new features. It's been in development for a lot longer than was anticipated!

New Features

Bug Fixes

Miscellaneous

  • The library now fully supports Python 3.8 without warnings.
  • Bump the dependency of websockets to 8.0 for those who can use it. (:dpy-issue:`2453`)
  • Due to Discord providing :class:`Member` data in mentions, users will now be upgraded to :class:`Member` more often if mentioned.
  • :func:`utils.escape_markdown` now properly escapes new quote markdown.
  • The message cache can now be disabled by passing None to max_messages in :class:`Client`.
  • The default message cache size has changed from 5000 to 1000 to accommodate small bots.
  • Lower memory usage by only creating certain objects as needed in :class:`Role`.
  • There is now a sleep of 5 seconds before re-IDENTIFYing during a reconnect to prevent long loops of session invalidation.
  • The rate limiting code now uses millisecond precision to have more granular rate limit handling.
    • Along with that, the rate limiting code now uses Discord's response to wait. If you need to use the system clock again for whatever reason, consider passing assume_synced_clock in :class:`Client`.
  • The performance of :attr:`Guild.default_role` has been improved from O(N) to O(1). (:dpy-issue:`2375`)
  • The performance of :attr:`Member.roles` has improved due to usage of caching to avoid surprising performance traps.
  • The GC is manually triggered during things that cause large deallocations (such as guild removal) to prevent memory fragmentation.
  • There have been many changes to the documentation for fixes both for usability, correctness, and to fix some linter errors. Thanks to everyone who contributed to those.
  • The loading of the opus module has been delayed which would make the result of :func:`opus.is_loaded` somewhat surprising.
  • |commands| Usernames prefixed with @ inside DMs will properly convert using the :class:`User` converter. (:dpy-issue:`2498`)
  • |tasks| The task sleeping time will now take into consideration the amount of time the task body has taken before sleeping. (:dpy-issue:`2516`)

v1.2.5

Bug Fixes

  • Fix a bug that caused crashes due to missing animated field in Emoji structures in reactions.

v1.2.4

Bug Fixes

v1.2.3

Bug Fixes

v1.2.2

Bug Fixes

  • Audit log related attribute access have been fixed to not error out when they shouldn't have.

v1.2.1

Bug Fixes

  • :attr:`User.avatar_url` and related attributes no longer raise an error.
  • More compatibility shims with the enum.Enum code.

v1.2.0

This update mainly brings performance improvements and various nitro boosting attributes (referred to in the API as "premium guilds").

New Features

Bug Fixes

Miscellaneous

  • Improve performance of all Enum related code significantly.
    • This was done by replacing the enum.Enum code with an API compatible one.
    • This should not be a breaking change for most users due to duck-typing.
  • Improve performance of message creation by about 1.5x.
  • Improve performance of message editing by about 1.5-4x depending on payload size.
  • Improve performance of attribute access on :class:`Member` about by 2x.
  • Improve performance of :func:`utils.get` by around 4-6x depending on usage.
  • Improve performance of event parsing lookup by around 2.5x.
  • Keyword arguments in :meth:`Client.start` and :meth:`Client.run` are now validated (:dpy-issue:`953`, :dpy-issue:`2170`)
  • The Discord error code is now shown in the exception message for :exc:`HTTPException`.
  • Internal tasks launched by the library will now have their own custom __repr__.
  • All public facing types should now have a proper and more detailed __repr__.
  • |tasks| Errors are now logged via the standard :mod:`py:logging` module.

v1.1.1

Bug Fixes

Miscellaneous

  • Add back signal handling to :meth:`Client.run` due to issues some users had with proper cleanup.

v1.1.0

New Features

discord.ext.commands

Bug Fixes

discord.ext.commands

Miscellaneous

  • Improve the performance of internal enum creation in the library by about 5x.
  • Make the output of python -m discord --version a bit more useful.
  • The loop cleanup facility has been rewritten again.
  • The signal handling in :meth:`Client.run` has been removed.
discord.ext.commands
  • Custom exception classes are now used for all default checks in the library (:dpy-issue:`2101`)

v1.0.1

Bug Fixes

  • Fix issue with speaking state being cast to int when it was invalid.
  • Fix some issues with loop cleanup that some users experienced on Linux machines.
  • Fix voice handshake race condition (:dpy-issue:`2056`, :dpy-issue:`2063`)

v1.0.0

The changeset for this version are too big to be listed here, for more information please see :ref:`the migrating page <migrating_1_0>`.

v0.16.6

Bug Fixes

  • Fix issue with :meth:`Client.create_server` that made it stop working.
  • Fix main thread being blocked upon calling StreamPlayer.stop.
  • Handle HEARTBEAT_ACK and resume gracefully when it occurs.
  • Fix race condition when pre-emptively rate limiting that caused releasing an already released lock.
  • Fix invalid state errors when immediately cancelling a coroutine.

v0.16.1

This release is just a bug fix release with some better rate limit implementation.

Bug Fixes

v0.16.0

New Features

Bug Fixes

  • Timeout when waiting for offline members while triggering :func:`on_ready`.

    • The fact that we did not timeout caused a gigantic memory leak in the library that caused thousands of duplicate :class:`Member` instances causing big memory spikes.
  • Discard null sequences in the gateway.

v0.15.1

  • Fix crash on duplicate or out of order reactions.

v0.15.0

New Features

For the command extension, the following changed:

  • Context is no longer slotted to facilitate setting dynamic attributes.

v0.14.3

Bug Fixes

  • Fix crash when dealing with MESSAGE_REACTION_REMOVE
  • Fix incorrect buckets for reactions.

v0.14.2

New Features

  • :meth:`Client.wait_for_reaction` now returns a namedtuple with reaction and user attributes.
    • This is for better support in the case that None is returned since tuple unpacking can lead to issues.

Bug Fixes

v0.14.1

Bug fixes

  • Fix bug with Reaction not being visible at import.
    • This was also breaking the documentation.

v0.14.0

This update adds new API features and a couple of bug fixes.

New Features

Bug Fixes

v0.13.0

This is a backwards compatible update with new features.

New Features

Bug Fixes

  • Paginator pages do not exceed their max_size anymore (:dpy-issue:`340`)
  • Do Not Disturb users no longer show up offline due to the new :class:`Status` changes.

v0.12.0

This is a bug fix update that also comes with new features.

New Features

For the command extension, the following are new:

  • Add custom emoji converter.
  • All default converters that can take IDs can now convert via ID.
  • Add coroutine support for Bot.command_prefix.
  • Add a method to reset command cooldown.

Bug Fixes

v0.11.0

This is a minor bug fix update that comes with a gateway update (v5 -> v6).

Breaking Changes

New Features

For the command extension, the following are new:

  • Command cooldown system with the cooldown decorator.
  • UserInputError exception for the hierarchy for user input related errors.

Bug Fixes

  • :attr:`Client.email` is now saved when using a token for user accounts.
  • Fix issue when removing roles out of order.
  • Fix bug where discriminators would not update.
  • Handle cases where HEARTBEAT opcode is received. This caused bots to disconnect seemingly randomly.

For the command extension, the following bug fixes apply:

  • Bot.check decorator is actually a decorator not requiring parentheses.
  • Bot.remove_command and Group.remove_command no longer throw if the command doesn't exist.
  • Command names are no longer forced to be lower().
  • Fix a bug where Member and User converters failed to work in private message contexts.
  • HelpFormatter now ignores hidden commands when deciding the maximum width.

v0.10.0

For breaking changes, see 0.10.0 migration. The breaking changes listed there will not be enumerated below. Since this version is rather a big departure from v0.9.2, this change log will be non-exhaustive.

New Features

Performance Improvements

  • All data classes now use __slots__ which greatly reduce the memory usage of things kept in cache.
  • Due to the usage of asyncio, the CPU usage of the library has gone down significantly.
  • A lot of the internal cache lists were changed into dictionaries to change the O(n) lookup into O(1).
  • Compressed READY is now on by default. This means if you're on a lot of servers (or maybe even a few) you would receive performance improvements by having to download and process less data.
  • While minor, change regex from \d+ to [0-9]+ to avoid unnecessary unicode character lookups.

Bug Fixes