diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index f951ab8e2..7eca1b208 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 7e9d77205..0b822a7c0 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`)