aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaeptm Blaubaer <[email protected]>2019-03-16 10:32:59 +0100
committerDanny <[email protected]>2019-03-16 05:32:59 -0400
commitb506ee1b8e1feee27a35b3a83cc5a2c4c068361b (patch)
tree1f2325900b4041a2ae8326eb8d0b8e687a8f0703
parentUpdate README (diff)
downloaddiscord.py-b506ee1b8e1feee27a35b3a83cc5a2c4c068361b.tar.xz
discord.py-b506ee1b8e1feee27a35b3a83cc5a2c4c068361b.zip
Change superclass to subclass in some documentation
-rw-r--r--discord/ext/commands/context.py6
-rw-r--r--discord/ext/commands/core.py4
-rw-r--r--docs/locale/ja/LC_MESSAGES/ext/commands/api.po10
3 files changed, 10 insertions, 10 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index bef94f04..cdca61fa 100644
--- a/discord/ext/commands/context.py
+++ b/discord/ext/commands/context.py
@@ -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
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index f928e7f3..6b9b3c9e 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -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
diff --git a/docs/locale/ja/LC_MESSAGES/ext/commands/api.po b/docs/locale/ja/LC_MESSAGES/ext/commands/api.po
index 4d550697..3f8b29ae 100644
--- a/docs/locale/ja/LC_MESSAGES/ext/commands/api.po
+++ b/docs/locale/ja/LC_MESSAGES/ext/commands/api.po
@@ -307,7 +307,7 @@ msgstr ""
#: discord.ext.commands.Group.add_command:1
#: discord.ext.commands.GroupMixin.add_command:1 of
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."
msgstr ""
@@ -1934,7 +1934,7 @@ msgstr ""
#: discord.ext.commands.GroupMixin:6 of
msgid ""
":class:`dict` -- A mapping of command name to :class:`.Command` or "
-"superclass objects."
+"subclass objects."
msgstr ""
#: discord.ext.commands.GroupMixin:11 of
@@ -2585,7 +2585,7 @@ msgstr ""
#: discord.ext.commands.Context:35 of
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."
msgstr ""
@@ -2597,7 +2597,7 @@ msgstr ""
#: discord.ext.commands.Context:45 of
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`."
msgstr ""
@@ -2775,7 +2775,7 @@ msgid "The first parameter passed **must** be the command being invoked."
msgstr ""
#: 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 ""
#: discord.ext.commands.Context.invoke:14 of