@@ -97,11 +97,11 @@ public async Task<APIResult<BeatmapExtended>> LookupBeatmapFilenameAsync(string
9797 [ CanReturnAPIError ( APIErrorType . BeatmapNotFound , APIErrorType . UserOrScoreNotFound ) ]
9898 public async Task < APIResult < UserBeatmapScore > > GetUserBeatmapScoreAsync ( int beatmapId , int userId , bool legacyOnly = false , Ruleset ? ruleset = null ,
9999 CancellationToken ? cancellationToken = null )
100- => await GetAsync < UserBeatmapScore > ( $ "beatmaps/{ beatmapId } /scores/users/{ userId } ", cancellationToken , new ( )
100+ => ( await GetAsync < UserBeatmapScore > ( $ "beatmaps/{ beatmapId } /scores/users/{ userId } ", cancellationToken , new ( )
101101 {
102102 [ "legacy_only" ] = legacyOnly ,
103103 [ "mode" ] = ruleset ,
104- } ) ;
104+ } ) ) . WithErrorFallback ( APIErrorType . UserOrScoreNotFound ) ;
105105
106106 /// <summary>
107107 /// Returns all scores of the specified user on the specified beatmap in the specified ruleset, optionally excluding osu!lazer scores.
@@ -133,11 +133,11 @@ public async Task<APIResult<UserBeatmapScore>> GetUserBeatmapScoreAsync(int beat
133133 [ CanReturnAPIError ( APIErrorType . BeatmapNotFound , APIErrorType . UserOrScoreNotFound ) ]
134134 public async Task < APIResult < Score [ ] > > GetUserBeatmapScoresAsync ( int beatmapId , int userId , bool legacyOnly = false , Ruleset ? ruleset = null ,
135135 CancellationToken ? cancellationToken = null )
136- => await GetAsync < Score [ ] > ( $ "beatmaps/{ beatmapId } /scores/users/{ userId } /all", cancellationToken , new ( )
136+ => ( await GetAsync < Score [ ] > ( $ "beatmaps/{ beatmapId } /scores/users/{ userId } /all", cancellationToken , new ( )
137137 {
138138 [ "legacy_only" ] = legacyOnly ,
139139 [ "ruleset" ] = ruleset ,
140- } , json => json [ "scores" ] ) ;
140+ } , json => json [ "scores" ] ) ) . WithErrorFallback ( APIErrorType . UserOrScoreNotFound ) ;
141141
142142 /// <summary>
143143 /// Returns the top 50 scores on the specified beatmap in the specified ruleset.
0 commit comments