This commit is contained in:
git-bruh 2020-11-20 14:40:00 +05:30
parent 52f50461f8
commit 3117754a98
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -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