streamReactions method

Stream<User> streamReactions(
  1. Snowflake id,
  2. ReactionBuilder emoji, {
  3. Snowflake? after,
  4. Snowflake? before,
  5. 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,
    );