Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-12-18 19:14:14 +08:00 committed by GitHub
parent 8ac6d68b85
commit ae3d489732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ async def help(ctx: discord.ApplicationContext, module: str):
@client.slash_command(description="Set the bot running languages.")
@discord.option(name="lang", default="", description="Supported language codes.")
@discord.option(name="lang", choices=get_available_locales(), default="", description="Supported language codes.")
async def locale(ctx: discord.ApplicationContext, lang: str):
await slash_parser(ctx, lang)

View file

@ -4,7 +4,7 @@ from bots.discord.client import client
from bots.discord.slash_parser import slash_parser
@client.slash_command(description="Convert currency prices according to the exchange rate of the day.")
@discord.option(name="amount", default=1, description="The amount of base currency.")
@discord.option(name="amount", default="1", description="The amount of base currency.")
@discord.option(name="base", description="The base currency unit.")
@discord.option(name="target", description="The target currency unit.")
async def exchange_rate(ctx: discord.ApplicationContext, amount: float, base: str, target: str):