import discord class Extension: def __init__(self, core): @core.tree.command(name = "profile", description = "Проверить профиль") @discord.app_commands.describe(profile=core.ANY_INPUT) async def check_profile( interaction: discord.Interaction, profile: str = "" ): steam64 = await core.GetSteam64OfDiscord(interaction.user) player = await core.GetPlayer(profile, steam64) if profile else await core.GetPlayer(steam64, steam64) return await interaction.response.send_message(embed=player.embed, ephemeral=False)