import discord class Extension: core = None def __init__(self, core): self.core = core @core.tree.command(name = "mute", description = "Выключить микрофон") @discord.app_commands.describe(profile=core.ANY_INPUT) async def mute_player( interaction: discord.Interaction, profile: str ): await interaction.response.defer(thinking=True) return await interaction.followup.send(f'{await self.__call__(profile, interaction.user)}', ephemeral=False) async def __call__(self, profile, discord_user): steam64 = await self.core.GetSteam64OfDiscord(discord_user) player = await self.core.GetPlayer(profile, steam64, False) return await player.mute()