Item

FieldTypeDescription
idsnowflakeUnique ID of item
namestringItem name (between 3 and 100 characters)
pricenumberItem price
descriptionstringItem description (between 0 and 1,000 characters)
is_inventorybooleanIf this will be an inventory item
is_usablebooleanIf this item can be used (only if is_inventory = true)
is_sellablebooleanIf the item can be sold (only if is_inventory = true)
stock_remainingnumberQuantity of stock remaining (only if unlimited_stock = false)
unlimited_stockbooleanIf the stock for this item is unlimited
requirementsarray of Item RequirementList of requirements to buy or use this item
actionsarray of Item ActionList of actions to perform when buying or using this item
expires_atISO 8601 timestampTimestamp of when to delete this item from the store
emoji_unicodestringUnicode emoji to use for the icon
emoji_idsnowflakeDiscord emoji ID to use for the icon
 

Item Requirement

FieldTypeRequirement Type
typeRequirement Type
match_typeMatch Type
idsarray of snowflakesROLE
ITEM
balancenumberBALANCE
 

Requirement Type

NameValueDescription
ROLE1Discord role
TOTAL_BALANCE2Total balance
ITEM3Inventory item
 

Match Type

NameValueDescription
EVERY1Must match all ids
AT_LEAST_ONE2At least one id must match
NONE3None of the ids can match
 

Item Action

FieldTypeAction Type
typeAction Type
messageDiscord message object (content, embeds)RESPOND
idsarray of snowflakesADD_ROLES
REMOVE_ROLES
ADD_ITEMS
REMOVE_ITEMS
balancenumberADD_BALANCE
REMOVE_BALANCE
 

Action Type

NameValueDescription
RESPOND1Send or follow-up with a message
ADD_ROLES2Add roles to the user
REMOVE_ROLES3Remove roles from the user
ADD_BALANCE4Add money to their cash balance
REMOVE_BALANCE5Remove money from their cash balance
ADD_ITEMS6Add items to their inventory
REMOVE_ITEMS7Remove items from their inventory