ppy / osu-api

Public API for accessing osu! related data.
320 stars 16 forks source link

/get_user_recent Addition #307

Closed hmaltr closed 3 years ago

hmaltr commented 3 years ago

On endpoint "/get_user_recent" is it possible to add an array of mods enabled? alternative to already existing "enabled_mods" (mode names like ["Hidden", "HardRock"] )

It can be useful for some applications that doesnt want to deal with enumerators.

tybug commented 3 years ago

Are you suggesting the names should be added in addition to the integer enabled_mods? I don't see the point when you can convert between the two; see https://github.com/ppy/osu-api/wiki#mods

hmaltr commented 3 years ago

Yeah, I was saying that.

Though the case in my application it gets messy pretty easily, when a lot of mods gets enabled. like enabling every possible difficulty increasing or decreasing mods.

So adding something like that may also help other people.

peppy commented 3 years ago

you need to read up on bitwise flags. it should not be any different handling the existing enabled_mods or an array.