Browse Source

Add Reaction into typehint of add_reaction()

pull/8048/head
Ryan H 3 years ago
committed by GitHub
parent
commit
dbb00bd361
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/message.py

2
discord/message.py

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

Loading…
Cancel
Save