aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorsudosnok <[email protected]>2021-05-07 12:37:42 +0100
committerGitHub <[email protected]>2021-05-07 07:37:42 -0400
commit2a6d79078e791b0803b19d159672c501fd2b6d8a (patch)
tree3d68715c93af6f4652b5cbb7c5b853f3a9433c46 /docs
parentExplicitly ignore legacy file reference errors in sphinx -n mode (diff)
downloaddiscord.py-2a6d79078e791b0803b19d159672c501fd2b6d8a.tar.xz
discord.py-2a6d79078e791b0803b19d159672c501fd2b6d8a.zip
[commands] Add GuildChannelConverter
Diffstat (limited to 'docs')
-rw-r--r--docs/ext/commands/api.rst3
-rw-r--r--docs/ext/commands/commands.rst3
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/ext/commands/api.rst b/docs/ext/commands/api.rst
index aa31a000..53180642 100644
--- a/docs/ext/commands/api.rst
+++ b/docs/ext/commands/api.rst
@@ -288,6 +288,9 @@ Converters
.. autoclass:: discord.ext.commands.PartialMessageConverter
:members:
+.. autoclass:: discord.ext.commands.GuildChannelConverter
+ :members:
+
.. autoclass:: discord.ext.commands.TextChannelConverter
:members:
diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst
index 6e1f4223..e6d37c89 100644
--- a/docs/ext/commands/commands.rst
+++ b/docs/ext/commands/commands.rst
@@ -379,6 +379,7 @@ A lot of discord models work out of the gate as a parameter:
- :class:`User`
- :class:`Message` (since v1.1)
- :class:`PartialMessage` (since v1.7)
+- :class:`abc.GuildChannel` (since 2.0)
- :class:`TextChannel`
- :class:`VoiceChannel`
- :class:`StageChannel` (since v1.7)
@@ -411,6 +412,8 @@ converter is given below:
+--------------------------+-------------------------------------------------+
| :class:`PartialMessage` | :class:`~ext.commands.PartialMessageConverter` |
+--------------------------+-------------------------------------------------+
+| :class:`.GuildChannel` | :class:`~ext.commands.GuildChannelConverter` |
++--------------------------+-------------------------------------------------+
| :class:`TextChannel` | :class:`~ext.commands.TextChannelConverter` |
+--------------------------+-------------------------------------------------+
| :class:`VoiceChannel` | :class:`~ext.commands.VoiceChannelConverter` |