diff --git a/admin_ext/unban.py b/admin_ext/unban.py new file mode 100644 index 0000000..9625bc1 --- /dev/null +++ b/admin_ext/unban.py @@ -0,0 +1,13 @@ +import discord + +class Extension: + def __init__(self, core): + @core.tree.command(name = "unban", description = "Разбанить игрока") + @discord.app_commands.describe(profile=core.ANY_INPUT) + async def ban_player( + interaction: discord.Interaction, + profile: str + ): + steam64 = await core.GetSteam64OfDiscord(interaction.user) + player = await core.GetPlayer(profile, steam64, False) + return await interaction.response.send_message(f'{await player.unban()}', ephemeral=False) \ No newline at end of file