streamReactions method
Stream<User>
streamReactions(
- Snowflake id,
- ReactionBuilder emoji, {
- Snowflake? after,
- Snowflake? before,
- int? pageSize,
Same as fetchReactions
, but has no limit on the number of reactions returned.
If after
is set, only entities whose ID is after it will be returned.
If before
is set, only entities whose ID is before it will be returned.
pageSize
can be set to control the limit
parameter of the underlying
requests to the paginated endpoint. Most users will want to leave this
unset and default to the maximum page size.
Implementation
Stream<User> streamReactions(
Snowflake id,
ReactionBuilder emoji, {
Snowflake? after,
Snowflake? before,
int? pageSize,
}) =>
streamPaginatedEndpoint(
({before, after, limit}) => fetchReactions(id, emoji, after: after, limit: limit),
extractId: (user) => user.id,
before: before,
after: after,
pageSize: pageSize,
order: StreamOrder.oldestFirst,
);