Browse Source

Change superclass to subclass in some documentation

pull/1987/head
Kaeptm Blaubaer 6 years ago
committed by Danny
parent
commit
b506ee1b8e
  1. 6
      discord/ext/commands/context.py
  2. 4
      discord/ext/commands/core.py
  3. 10
      docs/locale/ja/LC_MESSAGES/ext/commands/api.po

6
discord/ext/commands/context.py

@ -53,13 +53,13 @@ class Context(discord.abc.Messageable):
prefix: :class:`str` prefix: :class:`str`
The prefix that was used to invoke the command. The prefix that was used to invoke the command.
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 currently.
invoked_with: :class:`str` invoked_with: :class:`str`
The command name that triggered this invocation. Useful for finding out The command name that triggered this invocation. Useful for finding out
which alias called the command. which alias called the command.
invoked_subcommand 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 invoked. If no valid subcommand was invoked then this is equal to
`None`. `None`.
subcommand_passed: Optional[:class:`str`] subcommand_passed: Optional[:class:`str`]
@ -105,7 +105,7 @@ class Context(discord.abc.Messageable):
Parameters Parameters
----------- -----------
command: :class:`.Command` 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 \*args
The arguments to to use. The arguments to to use.
\*\*kwargs \*\*kwargs

4
discord/ext/commands/core.py

@ -898,7 +898,7 @@ class GroupMixin:
Attributes Attributes
----------- -----------
all_commands: :class:`dict` 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. objects.
case_insensitive: :class:`bool` case_insensitive: :class:`bool`
Whether the commands should be case insensitive. Defaults to ``False``. Whether the commands should be case insensitive. Defaults to ``False``.
@ -921,7 +921,7 @@ class GroupMixin:
self.remove_command(command.name) self.remove_command(command.name)
def add_command(self, command): 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. of commands.
This is usually not called, instead the :meth:`~.GroupMixin.command` or This is usually not called, instead the :meth:`~.GroupMixin.command` or

10
docs/locale/ja/LC_MESSAGES/ext/commands/api.po

@ -307,7 +307,7 @@ msgstr ""
#: discord.ext.commands.Group.add_command:1 #: discord.ext.commands.Group.add_command:1
#: discord.ext.commands.GroupMixin.add_command:1 of #: discord.ext.commands.GroupMixin.add_command:1 of
msgid "" msgid ""
"Adds a :class:`.Command` or its superclasses into the internal list of " "Adds a :class:`.Command` or its subclasses into the internal list of "
"commands." "commands."
msgstr "" msgstr ""
@ -1934,7 +1934,7 @@ msgstr ""
#: discord.ext.commands.GroupMixin:6 of #: discord.ext.commands.GroupMixin:6 of
msgid "" msgid ""
":class:`dict` -- A mapping of command name to :class:`.Command` or " ":class:`dict` -- A mapping of command name to :class:`.Command` or "
"superclass objects." "subclass objects."
msgstr "" msgstr ""
#: discord.ext.commands.GroupMixin:11 of #: discord.ext.commands.GroupMixin:11 of
@ -2585,7 +2585,7 @@ msgstr ""
#: discord.ext.commands.Context:35 of #: discord.ext.commands.Context:35 of
msgid "" msgid ""
"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 currently."
msgstr "" msgstr ""
@ -2597,7 +2597,7 @@ msgstr ""
#: discord.ext.commands.Context:45 of #: discord.ext.commands.Context:45 of
msgid "" msgid ""
"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`." "invoked. If no valid subcommand was invoked then this is equal to `None`."
msgstr "" msgstr ""
@ -2775,7 +2775,7 @@ msgid "The first parameter passed **must** be the command being invoked."
msgstr "" msgstr ""
#: discord.ext.commands.Context.invoke:12 of #: discord.ext.commands.Context.invoke:12 of
msgid "A command or superclass of a command that is going to be called." msgid "A command or subclass of a command that is going to be called."
msgstr "" msgstr ""
#: discord.ext.commands.Context.invoke:14 of #: discord.ext.commands.Context.invoke:14 of

Loading…
Cancel
Save