Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cogs/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ async def dig(self, ctx: ApplicationContext):
name='shop',
description='Views and buys items from the shop'
)
@option(name="item", description="Specify an item to view.", type=str, default=None, choices=all_item_ids)
async def shop(self, ctx: ApplicationContext, item:str=None):
@option(name="item", description="Specify an item to view.", type=str, default=None)
async def shop(self, ctx: ApplicationContext, item: str=None):
if item == None:
localembed = discord.Embed(
title='The Shop!',
Expand All @@ -304,7 +304,7 @@ async def shop(self, ctx: ApplicationContext, item:str=None):
name='buy',
description='Buys an item from the shop'
)
@option(name="name", description="What do you want to buy?", type=str, choices=all_item_ids)
@option(name="name", description="What do you want to buy?", type=str)
@option(name="quantity", description="How many do you want to buy?", type=int, default=1)
async def buy(self, ctx: ApplicationContext, name: str, quantity: int=1):
try:
Expand Down Expand Up @@ -332,7 +332,7 @@ async def buy(self, ctx: ApplicationContext, name: str, quantity: int=1):
name='sell',
description='Sells an item from your inventory in exchange for cash'
)
@option(name="name", description="What do you want to sell?", type=str, choices=all_item_ids)
@option(name="name", description="What do you want to sell?", type=str)
@option(name="quantity", description="How many do you want to sell?", type=int, default=1)
async def sell(self, ctx: ApplicationContext, name: str, quantity: int=1):
try:
Expand All @@ -351,7 +351,7 @@ async def sell(self, ctx: ApplicationContext, name: str, quantity: int=1):
description="Gifts a (giftable) item to anyone you want"
)
@option(name="user", description="Who do you want to gift to?", type=discord.User)
@option(name="item", description="What do you want to gift?", type=str, choices=all_item_ids)
@option(name="item", description="What do you want to gift?", type=str)
@option(name="amount", description="How many of these do you want to gift?", type=int, default=1)
async def gift(self, ctx: ApplicationContext, user:discord.User, item:str, amount:int=1):
try:
Expand Down