/stock — Product Stock Check
Type: Customer slash command
Scope: All guild members
Description
Shows the current stock level and product details for a single product. Uses Discord autocomplete on the product option so users can search by name.
Usage
/stock product:<product-name>
The product option has autocomplete: start typing a product name and up to 25 matching active+published products are shown.
Behavior
- Autocomplete returns max 25 results, case-insensitive, filtered by
isActive = true,isPublished = true, and role-eligibility (stub). - Response is a single rich embed with name, description, price, and availability.
- Returns an error if the product is not found or the user lacks access.
Permissions
None — available to all guild members.