From dbb00bd3616bb23e3219cc43fab6c9063d8aec5c Mon Sep 17 00:00:00 2001 From: Ryan H <30587035+ryry013@users.noreply.github.com> Date: Tue, 17 May 2022 00:36:35 -0700 Subject: [PATCH] Add Reaction into typehint of add_reaction() --- discord/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/message.py b/discord/message.py index cfa1f969b..355a43c1b 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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.