This commit is contained in:
2024-08-09 23:36:24 +02:00
parent a3f904c5a1
commit c948a011ee

View File

@@ -33,7 +33,7 @@ class DiscordClient(discord.Client):
client = DiscordClient() client = DiscordClient()
@client.tree.command(guild=Object(id=config.DISCORD_GUILD_ID)) @client.tree.command()
@app_commands.describe( @app_commands.describe(
category="Раздел", category="Раздел",
customer="Кто заказал", customer="Кто заказал",
@@ -84,7 +84,7 @@ async def game_list_autocomplete(
return game_list.get_choices(current) return game_list.get_choices(current)
@client.tree.command(guild=Object(id=config.DISCORD_GUILD_ID)) @client.tree.command()
@app_commands.describe(game="Игра") @app_commands.describe(game="Игра")
@app_commands.autocomplete(game=game_list_autocomplete) @app_commands.autocomplete(game=game_list_autocomplete)
async def delete(interaction: discord.Interaction, game: str): async def delete(interaction: discord.Interaction, game: str):