osu-api-v2-js
    Preparing search index...
    • Get complex data about the votes of a beatmapset's discussions or/and received/given by a specific user!

      Parameters

      • this: API
      • Optionalfrom: {
            discussion?: number | Beatmapset.Discussion;
            vote_giver?: number | User;
            vote_receiver?: number | User;
        }

        The discussion with the votes, the user who voted, the user who's gotten the votes...

      • Optionalscore: 1 | -1

        An upvote (1) or a downvote (-1)

      • Optionalconfig: Miscellaneous.Config

        How many results maximum, how to sort them, which page of those, maybe a cursor_string...

      Returns Promise<
          {
              cursor_string: null
              | string;
              discussions: Beatmapset.Discussion[];
              users: WithGroups[];
              votes: Beatmapset.Discussion.Vote[];
          },
      >

      Relevant votes and info about them

      (2024-03-11) For months now, the API's documentation says the response is likely to change, so beware