Class: ReplayComponent

Components.ReplayComponent()

Replay-related API component

Constructor

new ReplayComponent()

Source:
Example
api.replay
    .get('1110141', '4222959', Nodesu.Mode.osu)
    .then(console.log);

Methods

get(beatmapId, userId, mode, lookupTypeopt, modsopt) → {Promise.<(Object|ReplayData)>}

Gets the replay. - If ratelimiting is enabled in the Client, this is rate limited under a different bucket with the more stricter conditions that is forced upon this endpoint!
Parameters:
Name Type Attributes Description
beatmapId String The beatmap ID of the map.
userId String The user that played that beatmap.
mode Mode The gamemode of the play.
lookupType LookupType <optional>
The lookup type, id/string to lookup the user.
mods Mods <optional>
The bitwise combination for the mods.
Source:
Returns:
An object with the `content` LZMA-stream data encoded as the encoding specified in `object`. If custom classes are enabled, a buffer of the encoded data will be provided by the `content` property.
Type
Promise.<(Object|ReplayData)>