Skip to content

Commit

Permalink
Add message to show remaining quantity for g.e sellers
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Mar 17, 2024
1 parent 5911a1f commit 46cc4e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/grandExchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ ${type} ${toKMB(quantity)} ${item.name} for ${toKMB(price)} each, for a total of
const components = [disableDMsButton];
if (newSellerListingQuantityRemaining > 0) {
components.push(createGECancelButton(sellerListing));
str += `\n\nYou have ${newSellerListingQuantityRemaining}x remaining to sell in your listing.`;
} else {
str += '\n\nThis listing has now been fully fulfilled.';
}

await sellerDJSUser.send({ content: str, components: makeComponents(components) }).catch(noOp);
Expand Down

0 comments on commit 46cc4e0

Please sign in to comment.