Constructor
new ScoresComponent()
- Source:
Example
api.scores
.get('1110141')
.then(console.log);
Methods
get(beatmapId, modsopt, modeopt, limitopt, useropt, lookupTypeopt) → {Promise.<(Array.<Object>|Array.<BeatmapScore>)>}
Gets scores for a specific beatmap
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
beatmapId |
String | The beatmap ID. | |
mods |
Mods |
<optional> |
The bitwise combination for the mods. |
mode |
Mode |
<optional> |
The gamemode. |
limit |
Number |
<optional> |
The limit of scores to get. |
user |
String |
<optional> |
User to lookup. |
lookupType |
LookupType |
<optional> |
Only for if user is given, the lookup mode for it. |
- Source:
Returns:
The object array from the API, or BeatmapScore object array if parsing is enabled.
- Type
- Promise.<(Array.<Object>|Array.<BeatmapScore>)>