osu-api-v2-js
    Preparing search index...

    Function getOne

    • Get a Forum.Topic, as well as its main post (content) and the posts that were sent in it!

      Parameters

      • this: API
      • topic: number | Forum.Topic

        An object with the id of the topic in question

      • Optionalconfig: Pick<Miscellaneous.Config, "sort" | "cursor_string" | "limit"> & {
            first_post?: number | Forum.Post;
        }

        How many results maximum, how to sort them, etc...

        • Optionalfirst_post?: number | Forum.Post

          The id (or the post itself) of the first post to be returned in posts (irrelevant if using a cursor_string)

      Returns Promise<
          {
              cursor_string: null
              | string;
              posts: Forum.Post[];
              topic: Forum.Topic;
          },
      >

      The oldest post of a topic is the text of a topic