• Get various data about the difficulty of a beatmap!

    Parameters

    • this: API
    • beatmap: number | Beatmap

      The Beatmap in question

    • Optionalmods: number | string[] | Mod[]

      Can be a bitset of mods, an array of mod acronyms, or an array of Mods (ignores mod settings) (defaults to No Mod)

    • Optionalruleset: Ruleset

      Useful to specify if the beatmap is a convert (defaults to the ruleset the beatmap was intended for)

    Returns Promise<Beatmap.DifficultyAttributes.Any>

    You may want to use api.getBeatmapDifficultyAttributesOsu (or Taiko or whatever) instead for better type safety