Add reaction type to raw events and users iterator

This commit is contained in:
Andrin
2024-05-18 20:33:26 +02:00
committed by GitHub
parent b5ada0a662
commit f77ba711ba
7 changed files with 53 additions and 4 deletions

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]: