Add Reaction into typehint of add_reaction()

This commit is contained in:
Ryan H 2022-05-17 00:36:35 -07:00 committed by GitHub
parent d16e0cbe61
commit dbb00bd361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -974,7 +974,7 @@ class PartialMessage(Hashable):
# pinned exists on PartialMessage for duck typing purposes
self.pinned = False
async def add_reaction(self, emoji: EmojiInputType, /) -> None:
async def add_reaction(self, emoji: Union[EmojiInputType, Reaction], /) -> None:
"""|coro|
Adds a reaction to the message.