conflict fixes
This commit is contained in:
@ -7,16 +7,29 @@ The following section outlines the API of discord.py's command extension module.
|
||||
|
||||
.. _ext_commands_api_bot:
|
||||
|
||||
Bots
|
||||
------
|
||||
|
||||
Bot
|
||||
----
|
||||
~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.Bot
|
||||
|
||||
.. autoclass:: discord.ext.commands.Bot
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
AutoShardedBot
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.AutoShardedBot
|
||||
|
||||
.. autoclass:: discord.ext.commands.AutoShardedBot
|
||||
:members:
|
||||
|
||||
Prefix Helpers
|
||||
----------------
|
||||
|
||||
.. autofunction:: discord.ext.commands.when_mentioned
|
||||
|
||||
.. autofunction:: discord.ext.commands.when_mentioned_or
|
||||
@ -64,21 +77,39 @@ are custom to the command extension module.
|
||||
|
||||
.. _ext_commands_api_command:
|
||||
|
||||
Command
|
||||
--------
|
||||
Commands
|
||||
----------
|
||||
|
||||
Decorators
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. autofunction:: discord.ext.commands.command
|
||||
|
||||
.. autofunction:: discord.ext.commands.group
|
||||
|
||||
Command
|
||||
~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.Command
|
||||
|
||||
.. autoclass:: discord.ext.commands.Command
|
||||
:members:
|
||||
:special-members: __call__
|
||||
|
||||
Group
|
||||
~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.Group
|
||||
|
||||
.. autoclass:: discord.ext.commands.Group
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
GroupMixin
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.GroupMixin
|
||||
|
||||
.. autoclass:: discord.ext.commands.GroupMixin
|
||||
:members:
|
||||
|
||||
@ -87,28 +118,58 @@ Command
|
||||
Cogs
|
||||
------
|
||||
|
||||
Cog
|
||||
~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.Cog
|
||||
|
||||
.. autoclass:: discord.ext.commands.Cog
|
||||
:members:
|
||||
|
||||
CogMeta
|
||||
~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.CogMeta
|
||||
|
||||
.. autoclass:: discord.ext.commands.CogMeta
|
||||
:members:
|
||||
|
||||
.. _ext_commands_help_command:
|
||||
|
||||
Help Commands
|
||||
-----------------
|
||||
---------------
|
||||
|
||||
HelpCommand
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.HelpCommand
|
||||
|
||||
.. autoclass:: discord.ext.commands.HelpCommand
|
||||
:members:
|
||||
|
||||
DefaultHelpCommand
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.DefaultHelpCommand
|
||||
|
||||
.. autoclass:: discord.ext.commands.DefaultHelpCommand
|
||||
:members:
|
||||
:exclude-members: send_bot_help, send_cog_help, send_group_help, send_command_help, prepare_help_command
|
||||
|
||||
MinimalHelpCommand
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.MinimalHelpCommand
|
||||
|
||||
.. autoclass:: discord.ext.commands.MinimalHelpCommand
|
||||
:members:
|
||||
:exclude-members: send_bot_help, send_cog_help, send_group_help, send_command_help, prepare_help_command
|
||||
|
||||
Paginator
|
||||
~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ext.commands.Paginator
|
||||
|
||||
.. autoclass:: discord.ext.commands.Paginator
|
||||
:members:
|
||||
|
||||
@ -190,6 +251,8 @@ Checks
|
||||
Context
|
||||
--------
|
||||
|
||||
.. attributetable:: discord.ext.commands.Context
|
||||
|
||||
.. autoclass:: discord.ext.commands.Context
|
||||
:members:
|
||||
:inherited-members:
|
||||
@ -353,9 +416,15 @@ Exceptions
|
||||
.. autoexception:: discord.ext.commands.ChannelNotReadable
|
||||
:members:
|
||||
|
||||
.. autoexception:: discord.ext.commands.BadColourArgument
|
||||
:members:
|
||||
|
||||
.. autoexception:: discord.ext.commands.RoleNotFound
|
||||
:members:
|
||||
|
||||
.. autoexception:: discord.ext.commands.BadInviteArgument
|
||||
:members:
|
||||
|
||||
.. autoexception:: discord.ext.commands.EmojiNotFound
|
||||
:members:
|
||||
|
||||
@ -409,7 +478,7 @@ Exceptions
|
||||
|
||||
|
||||
Exception Hierarchy
|
||||
+++++++++++++++++++++
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. exception_hierarchy::
|
||||
|
||||
|
@ -713,7 +713,7 @@ Global Checks
|
||||
Sometimes we want to apply a check to **every** command, not just certain commands. The library supports this as well
|
||||
using the global check concept.
|
||||
|
||||
Global checks work similarly to regular checks except they are registered with the :func:`.Bot.check` decorator.
|
||||
Global checks work similarly to regular checks except they are registered with the :meth:`.Bot.check` decorator.
|
||||
|
||||
For example, to block all DMs we could do the following:
|
||||
|
||||
|
@ -135,6 +135,8 @@ Doing something during cancellation:
|
||||
API Reference
|
||||
---------------
|
||||
|
||||
.. attributetable:: discord.ext.tasks.Loop
|
||||
|
||||
.. autoclass:: discord.ext.tasks.Loop()
|
||||
:members:
|
||||
|
||||
|
Reference in New Issue
Block a user