Add reaction type to raw events and users iterator

This commit is contained in:
Andrin authored and GitHub committed 2024-05-18 14:33:26 -04:00
1 parent b5ada0a662
commit f77ba711ba
7 files changed
+53 -4

No files matched your search

+5
View File
@@ -941,6 +941,7 @@ class HTTPClient:
emoji: str,
limit: int,
after: Optional[Snowflake] = None,
type: Optional[message.ReactionType] = None,
) -> Response[List[user.User]]:
r = Route(
'GET',
@@ -955,6 +956,10 @@ class HTTPClient:
}
if after:
params['after'] = after
if type is not None:
params['type'] = type
return self.request(r, params=params)
def clear_reactions(self, channel_id: Snowflake, message_id: Snowflake) -> Response[None]: