mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Add redeem button
(do not redeem)
This commit is contained in:
@@ -86,6 +86,24 @@ const inventoryReq = {
|
||||
};
|
||||
return args;
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {{ code: string }} params
|
||||
* @returns {Promise<{json: any, params}>}
|
||||
* Note: Do not redeem
|
||||
*/
|
||||
redeemReward(params) {
|
||||
return request('reward/redeem', {
|
||||
method: 'POST',
|
||||
params
|
||||
}).then((json) => {
|
||||
const args = {
|
||||
json,
|
||||
params
|
||||
};
|
||||
return args;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user