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

    Function lock

    • Lock or unlock a Forum.Topic that you're allowed to moderate!

      Parameters

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

        The topic or the id of the topic in question

      • lock: boolean = true

        True if locking, false if unlocking (defaults to true)

      Returns Promise<void>