Change PartialReactionEmoji to PartialEmoji, add a PartialEmojiConverter

This commit is contained in:
Gorialis
2018-01-02 07:59:51 +09:00
committed by Rapptz
parent 3112e1c17e
commit 04d9dd9c0d
8 changed files with 55 additions and 19 deletions

View File

@ -173,6 +173,9 @@ Converters
.. autoclass:: discord.ext.commands.EmojiConverter
:members:
.. autoclass:: discord.ext.commands.PartialEmojiConverter
:members:
.. autoclass:: discord.ext.commands.clean_content
:members:

View File

@ -310,6 +310,7 @@ A lot of discord models work out of the gate as a parameter:
- :class:`Invite`
- :class:`Game`
- :class:`Emoji`
- :class:`PartialEmoji`
- :class:`Colour`
Having any of these set as the converter will intelligently convert the argument to the appropriate target type you
@ -339,6 +340,8 @@ converter is given below:
+-----------------------+-------------------------------------------------+
| :class:`Emoji` | :class:`~ext.commands.EmojiConverter` |
+-----------------------+-------------------------------------------------+
| :class:`PartialEmoji` | :class:`~ext.commands.PartialEmojiConverter` |
+-----------------------+-------------------------------------------------+
| :class:`Colour` | :class:`~ext.commands.ColourConverter` |
+-----------------------+-------------------------------------------------+