From 0b06695e8baa716376d218b9e3db182d27b99135 Mon Sep 17 00:00:00 2001 From: gsd Date: Thu, 9 Mar 2023 22:29:18 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=20=D0=B1=D0=BE=D0=B4=D1=80=D1=8F=D1=87?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other_ext/webhook_helper.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/other_ext/webhook_helper.py b/other_ext/webhook_helper.py index 6a57a86..dd908de 100644 --- a/other_ext/webhook_helper.py +++ b/other_ext/webhook_helper.py @@ -23,8 +23,8 @@ class Extension: "😘":('ban', {"profile":"", "reason":"", "minutes":0, "discord_user":None}), "🔨":('ban', {"profile":"", "reason":"", "minutes":30, "discord_user":None}), "⚒️":('ban', {"profile":"", "reason":"", "minutes":120, "discord_user":None}), - "📨":(self.no_reason, {"requester":""}), - "🦵":("kick", {"profile":"", "discord_user":None}), + "📨":(self.null_reason, {"requester":""}), + "🦵":("kick", {"profile":"", "discord_user":None, "reason":""}), "🔇":("mute", {"profile":""}), "😇":("unban", {"profile":"", "discord_user":None}), "<:hueglot:713139400028061767>":("kick", {"profile":"", "requester_profile":"", "discord_user":None}), @@ -83,6 +83,11 @@ class Extension: except Exception as err: print("Cannot delete request reason message, error: " +err) + try: + await msg.delete() + except Exception as err: + print("Cannot delete user response message, error: " +err) + #не ну это пиздец if len(msg.content.split(" ")) > 0 and msg.content.lower().split(" ")[0] == "отмена": return await message.channel.send(content=f"{user.mention}!\nДействие {payload.emoji} отменено по твоей воле", delete_after=60)