From c462e0570fede60b21d07ee8536fc4996afe9dfa Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:51:27 -0500 Subject: [PATCH] Update endpoint for deleteFromInventory --- lib/asset/deleteFromInventory.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/asset/deleteFromInventory.js b/lib/asset/deleteFromInventory.js index a613e56a..46ebfa40 100644 --- a/lib/asset/deleteFromInventory.js +++ b/lib/asset/deleteFromInventory.js @@ -22,11 +22,10 @@ exports.optional = ['jar'] function deleteFromInventory (jar, assetId, xcsrf) { return new Promise((resolve, reject) => { const httpOpt = { - url: 'https://www.roblox.com/asset/delete-from-inventory', + url: `https://inventory.roblox.com/v2/inventory/asset/${assetId}`, options: { - method: 'POST', + method: 'DELETE', resolveWithFullResponse: true, - body: `assetId=${assetId}`, jar, headers: { 'X-CSRF-TOKEN': xcsrf,