Skip to content

Conversation

@TastyPumPum
Copy link
Contributor

This PR adds a new patron-only /tools patron item_holders subcommand that reports how many users (optionally only ironmen) have at least one of a given item in their bank.

Item holder counts are pre-aggregated in a new get_item_holder_counts() SQL function and stored alongside existing economy snapshots in economy_item_banks, and fetchLatestHolderSnapshot() reads the latest snapshot to serve the command efficiently.

The response uses Discord’s timestamp formatting to show the snapshot time in each user’s local timezone.

image
  • I have tested all my changes thoroughly.

Introduced a patron-only item_holders subcommand that accepts an item and optional ironman filter, returning a timestamped count of users with that item in their bank while honoring patron permissions.
@TastyPumPum TastyPumPum closed this Dec 2, 2025
@TastyPumPum TastyPumPum reopened this Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant