Skip to content

Commit

Permalink
Merge pull request #848 from Regalijan/fix-deletefrominventory
Browse files Browse the repository at this point in the history
Update endpoint for deleteFromInventory
  • Loading branch information
Regalijan authored Dec 10, 2024
2 parents 3bc29c3 + c462e05 commit 88c9f61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/asset/deleteFromInventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 88c9f61

Please sign in to comment.