Browse Source

Add changelog for v1.1.0

pull/2147/head
Rapptz 6 years ago
parent
commit
f8cc64ca7e
  1. 2
      docs/ext/commands/api.rst
  2. 2
      docs/ext/tasks/index.rst
  3. 67
      docs/whats_new.rst

2
docs/ext/commands/api.rst

@ -134,6 +134,8 @@ Checks
.. autofunction:: discord.ext.commands.guild_only .. autofunction:: discord.ext.commands.guild_only
.. autofunction:: discord.ext.commands.dm_only
.. autofunction:: discord.ext.commands.is_owner .. autofunction:: discord.ext.commands.is_owner
.. autofunction:: discord.ext.commands.is_nsfw .. autofunction:: discord.ext.commands.is_nsfw

2
docs/ext/tasks/index.rst

@ -128,6 +128,8 @@ Doing something during cancellation:
await self.do_bulk() await self.do_bulk()
.. _ext_tasks_api:
API Reference API Reference
--------------- ---------------

67
docs/whats_new.rst

@ -8,6 +8,73 @@ Changelog
This page keeps a detailed human friendly rendering of what's new and changed This page keeps a detailed human friendly rendering of what's new and changed
in specific versions. in specific versions.
.. _vp1p1p0:
v1.1.0
---------
New Features
~~~~~~~~~~~~~~
- **There is a new extension dedicated to making background tasks easier.**
- You can check the documentation here: :ref:`ext_tasks_api`.
- Add :attr:`Permissions.stream` permission. (:issue:`2077`)
- Add equality comparison and hash support to :class:`Asset`
- Add ``compute_prune_members`` parameter to :meth:`Guild.prune_members` (:issue:`2085`)
- Add :attr:`Client.cached_messages` attribute to fetch the message cache (:issue:`2086`)
- Add :meth:`abc.GuildChannel.clone` to clone a guild channel. (:issue:`2093`)
- Add ``delay`` keyword-only argument to :meth:`Message.delete` (:issue:`2094`)
- Add support for ``<:name:id>`` when adding reactions (:issue:`2095`)
- Add :meth:`Asset.read` to fetch the bytes content of an asset (:issue:`2107`)
- Add :meth:`Attachment.read` to fetch the bytes content of an attachment (:issue:`2118`)
- Add support for voice kicking by passing ``None`` to :meth:`Member.move_to`.
``discord.ext.commands``
++++++++++++++++++++++++++
- Add new :func:`~.commands.dm_only` check.
- Support callable converters in :data:`~.commands.Greedy`
- Add new :class:`~.commands.MessageConverter`.
- This allows you to use :class:`Message` as a type hint in functions.
- Allow passing ``cls`` in the :func:`~.commands.group` decorator (:issue:`2061`)
- Add :attr:`.Command.parents` to fetch the parents of a command (:issue:`2104`)
Bug Fixes
~~~~~~~~~~~~
- Fix :exc:`AttributeError` when using ``__repr__`` on :class:`Widget`.
- Fix issue with :attr:`abc.GuildChannel.overwrites` returning ``None`` for keys.
- Remove incorrect legacy NSFW checks in e.g. :meth:`TextChannel.is_nsfw`.
- Fix :exc:`UnboundLocalError` when :class:`RequestsWebhookAdapter` raises an error.
- Fix bug where updating your own user did not update your member instances.
- Tighten constraints of ``__eq__`` in :class:`Spotify` objects (:issue:`2113`, :issue:`2117`)
``discord.ext.commands``
++++++++++++++++++++++++++
- Fix lambda converters in a non-module context (e.g. ``eval``).
- Use message creation time for reference time when computing cooldowns.
- This prevents cooldowns from triggering during e.g. a RESUME session.
- Fix the default :func:`on_command_error` to work with new-style cogs (:issue:`2094`)
- DM channels are now recognised as NSFW in :func:`~.commands.is_nsfw` check.
- Fix race condition with help commands (:issue:`2123`)
- Fix cog descriptions not showing in :class:`~.commands.MinimalHelpCommand` (:issue:`2139`)
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 (:issue:`2101`)
.. _vp1p0p1: .. _vp1p0p1:
v1.0.1 v1.0.1

Loading…
Cancel
Save