Skip to content

Feature: Add administrative command to manage user inventory items #253

@RemainingDelta

Description

@RemainingDelta

Overview

This feature introduces a new administrative command that allows privileged users to directly add or remove items from a user's inventory. This addresses a current limitation where inventory items can only be managed during the redemption ticket closing process, preventing resolution of specific user issues.

Technical Requirements

  • Implement a new administrative Discord command (e.g., /admin inventory manage).
  • The command should include sub-commands or options for add and remove.
  • For add, accept a user ID and item ID/name.
  • For remove, accept a user ID and item ID/name.
  • Integrate with the existing inventory and token management system to ensure correct item addition/removal and token adjustments.
  • Implement role-based access control to restrict command usage to authorized personnel.

Acceptance Criteria

  • A new administrative command is available to manage user inventories.
  • Authorized personnel can successfully add a specified item to a user's inventory, deducting the item's token value.
  • Authorized personnel can successfully remove a specified item from a user's inventory, refunding the item's token value.
  • The command handles cases where the specified user or item does not exist gracefully.
  • The command is restricted to users with appropriate administrative roles.

Notes

This command is particularly needed for scenarios where a user has purchased an item but cannot redeem it due to budget constraints (e.g., item value > monthly budget). Currently, the only way to reverse an inventory purchase and refund tokens is through the redemption ticket closure process, which is not possible in these edge cases. This new command will provide a direct way to correct such discrepancies.

Branch

253-Feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureSomething to add/change to the bot

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions