aboutsummaryrefslogtreecommitdiff
path: root/docs/migrating.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-15 02:08:56 -0400
committerRapptz <[email protected]>2017-05-15 02:08:56 -0400
commitd80e08c1c66592248693ee285a5c88c2575a04b9 (patch)
tree758a8f25c9e582315100cea544113a86df812067 /docs/migrating.rst
parentRemove a bunch of red from the theme. (diff)
downloaddiscord.py-d80e08c1c66592248693ee285a5c88c2575a04b9.tar.xz
discord.py-d80e08c1c66592248693ee285a5c88c2575a04b9.zip
Fix all broken cross references in the migrating page... again.
Diffstat (limited to 'docs/migrating.rst')
-rw-r--r--docs/migrating.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst
index 90e33632..38e2af93 100644
--- a/docs/migrating.rst
+++ b/docs/migrating.rst
@@ -818,12 +818,12 @@ The ``commands`` attribute of :class:`~ext.commands.Bot` and :class:`~ext.comman
dictionary to a set that does not have aliases. To retrieve the previous dictionary behaviour, use ``all_commands`` instead.
Command instances have gained a new property, :attr:`~ext.commands.Command.signature` to get the signature of command along
-with a :attr:`~ext.commands.Command.usage` attribute to override the default signature.
+with a :attr:`~.Command.usage` attribute to override the default signature.
Check Changes
~~~~~~~~~~~~~~~
-Prior to v1.0, :func:`~ext.command.check`\s could only be synchronous. As of v1.0 checks can now be coroutines.
+Prior to v1.0, :func:`~ext.commands.check`\s could only be synchronous. As of v1.0 checks can now be coroutines.
Along with this change, a couple new checks were added.
@@ -854,12 +854,12 @@ After: ::
on_command_completion(ctx)
on_command_error(ctx, error)
-The extraneous ``command`` parameter in :func:`~ext.commands.on_command` and :func:`~ext.commands.on_command_completion`
+The extraneous ``command`` parameter in :func:`.on_command` and :func:`.on_command_completion`
have been removed. The :class:`~ext.commands.Command` instance was not kept up-to date so it was incorrect. In order to get
the up to date :class:`~ext.commands.Command` instance, use the :attr:`.Context.command`
attribute.
-The error handlers, either :attr:`.Command.error` or :func:`~ext.commands.on_command_error`,
+The error handlers, either :meth:`.Command.error` or :func:`.on_command_error`,
have been re-ordered to use the :class:`~ext.commands.Context` as its first parameter to be consistent with other events
and commands.