-
Notifications
You must be signed in to change notification settings - Fork 15
v2.scores.user.beatmap
cyperdark edited this page May 23, 2023
·
1 revision
Return best user score on beatmap
const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);
await v2.scores.user.beatmap(beatmap, user, object)
Parameter | Type | Description |
---|---|---|
beatmap | number |
id of the beatmap |
user | string/number |
id of the user |
object.mode | string |
osu or fruits or mania or taiko
|
object.mods | string[] |
Array of matching mods ['HD', 'DT'] |
object.best_only | boolean |
Return only best score from the beatmap |
export interface response {
accuracy: number;
best_id: number;
created_at: string;
id: number;
max_combo: number;
mode: string;
mode_int: number;
mods: string[];
passed: boolean;
perfect: boolean;
pp: number;
rank: string;
replay: boolean;
score: number;
statistics: {
count_100: number;
count_300: number;
count_50: number;
count_geki: number;
count_katu: number;
count_miss: number;
};
type: string;
user_id: number;
current_user_attributes: {
pin: {
is_pinned: boolean;
score_id: number;
score_type: string;
};
};
}