mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 19:03:03 +00:00
Change superclass to subclass in some documentation
This commit is contained in:
@ -53,13 +53,13 @@ class Context(discord.abc.Messageable):
|
||||
prefix: :class:`str`
|
||||
The prefix that was used to invoke the command.
|
||||
command
|
||||
The command (i.e. :class:`.Command` or its superclasses) that is being
|
||||
The command (i.e. :class:`.Command` or its subclasses) that is being
|
||||
invoked currently.
|
||||
invoked_with: :class:`str`
|
||||
The command name that triggered this invocation. Useful for finding out
|
||||
which alias called the command.
|
||||
invoked_subcommand
|
||||
The subcommand (i.e. :class:`.Command` or its superclasses) that was
|
||||
The subcommand (i.e. :class:`.Command` or its subclasses) that was
|
||||
invoked. If no valid subcommand was invoked then this is equal to
|
||||
`None`.
|
||||
subcommand_passed: Optional[:class:`str`]
|
||||
@ -105,7 +105,7 @@ class Context(discord.abc.Messageable):
|
||||
Parameters
|
||||
-----------
|
||||
command: :class:`.Command`
|
||||
A command or superclass of a command that is going to be called.
|
||||
A command or subclass of a command that is going to be called.
|
||||
\*args
|
||||
The arguments to to use.
|
||||
\*\*kwargs
|
||||
|
@ -898,7 +898,7 @@ class GroupMixin:
|
||||
Attributes
|
||||
-----------
|
||||
all_commands: :class:`dict`
|
||||
A mapping of command name to :class:`.Command` or superclass
|
||||
A mapping of command name to :class:`.Command` or subclass
|
||||
objects.
|
||||
case_insensitive: :class:`bool`
|
||||
Whether the commands should be case insensitive. Defaults to ``False``.
|
||||
@ -921,7 +921,7 @@ class GroupMixin:
|
||||
self.remove_command(command.name)
|
||||
|
||||
def add_command(self, command):
|
||||
"""Adds a :class:`.Command` or its superclasses into the internal list
|
||||
"""Adds a :class:`.Command` or its subclasses into the internal list
|
||||
of commands.
|
||||
|
||||
This is usually not called, instead the :meth:`~.GroupMixin.command` or
|
||||
|
Reference in New Issue
Block a user