aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-06-09 01:23:14 -0400
committerRapptz <[email protected]>2019-06-09 01:24:41 -0400
commitaf4e3ad79b4254c228a2aaf77951851c6b5eba2a (patch)
tree9a45f98edf46bb3bd2a0ec6acd8eb8e762c0bb64
parentRemove unused import. (diff)
downloaddiscord.py-af4e3ad79b4254c228a2aaf77951851c6b5eba2a.tar.xz
discord.py-af4e3ad79b4254c228a2aaf77951851c6b5eba2a.zip
Some documentation touch-ups and missing stuff in the changelog.
-rw-r--r--discord/ext/commands/core.py2
-rw-r--r--docs/whats_new.rst4
2 files changed, 5 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index f951ab8e..7eca1b20 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -167,6 +167,8 @@ class Command(_BaseCommand):
regular matter rather than passing the rest completely raw. If ``True``
then the keyword-only argument will pass in the rest of the arguments
in a completely raw matter. Defaults to ``False``.
+ invoked_subcommand: Optional[:class:`Command`]
+ The subcommand that was invoked, if any.
ignore_extra: :class:`bool`
If ``True``\, ignores extraneous strings passed to a command if all its
requirements are met (e.g. ``?foo a b c`` when only expecting ``a``
diff --git a/docs/whats_new.rst b/docs/whats_new.rst
index 7e9d7720..0b822a7c 100644
--- a/docs/whats_new.rst
+++ b/docs/whats_new.rst
@@ -35,6 +35,8 @@ New Features
- Add :attr:`VoiceRegion.india`. (:issue:`2145`)
- Add :meth:`Embed.insert_field_at`. (:issue:`2178`)
- Add a ``type`` attribute for all channels to their appropriate :class:`ChannelType`. (:issue:`2185`)
+- Add :meth:`Client.fetch_channel` to fetch a channel by ID via HTTP. (:issue:`2169`)
+- Add :meth:`Guild.fetch_channels` to fetch all channels via HTTP. (:issue:`2169`)
- |tasks| Add :meth:`Loop.stop <.ext.tasks.Loop.stop>` to gracefully stop a task rather than cancelling.
- |tasks| Add :meth:`Loop.failed <.ext.tasks.Loop.failed>` to query if a task had failed somehow.
- |tasks| Add :meth:`Loop.change_interval <.ext.tasks.Loop.change_interval>` to change the sleep interval at runtime (:issue:`2158`, :issue:`2162`)
@@ -43,7 +45,7 @@ Bug Fixes
~~~~~~~~~~~
- Fix internal error when using :meth:`Guild.prune_members`.
-- |commands| Fix :attr:`~ext.commands.Group.invoked_subcommand` being invalid in many cases.
+- |commands| Fix :attr:`.Command.invoked_subcommand` being invalid in many cases.
- |tasks| Reset iteration count when the loop terminates and is restarted.
- |tasks| The decorator interface now works as expected when stacking (:issue:`2154`)