import discord class Extension: def __init__(self, core): @core.tree.command(name = "givevip", description = "Выдать игроку випку") @discord.app_commands.checks.has_role("Администратор") @discord.app_commands.describe(profile=core.ANY_INPUT, days="Дней", hours="Часов", minutes="Минут") async def givevip_command( interaction: discord.Interaction, profile: str, days: int = 0, hours: int = 0, minutes: int = 0 ): await interaction.response.defer(thinking=True) steam64 = await core.GetSteam64OfDiscord(interaction.user) player = await core.GetPlayer(profile, steam64) amount = days * 24 * 60 * 60 + hours * 60 * 60 + minutes * 60 if amount > 0: return await interaction.followup.send(f'{await player.vip(amount)}', ephemeral=False) else: return await interaction.followup.send("Ты еблан, время то укажи дядя...")