From 3117754a98d78059acee5bc66bd1e625c3f37ee9 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Fri, 20 Nov 2020 14:40:00 +0530 Subject: [PATCH] update --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e912e10..9b2c66c 100644 --- a/main.py +++ b/main.py @@ -161,7 +161,7 @@ async def webhook_send(author, avatar, message, event_id): hook_name = "matrix_bridge" hooks = await channel.webhooks() hook = discord.utils.get(hooks, name=hook_name) - if hook is None: + if not hook: hook = await channel.create_webhook(name=hook_name) # 'wait=True' allows us to store the sent message