update
This commit is contained in:
parent
52f50461f8
commit
3117754a98
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -161,7 +161,7 @@ async def webhook_send(author, avatar, message, event_id):
|
||||||
hook_name = "matrix_bridge"
|
hook_name = "matrix_bridge"
|
||||||
hooks = await channel.webhooks()
|
hooks = await channel.webhooks()
|
||||||
hook = discord.utils.get(hooks, name=hook_name)
|
hook = discord.utils.get(hooks, name=hook_name)
|
||||||
if hook is None:
|
if not hook:
|
||||||
hook = await channel.create_webhook(name=hook_name)
|
hook = await channel.create_webhook(name=hook_name)
|
||||||
|
|
||||||
# 'wait=True' allows us to store the sent message
|
# 'wait=True' allows us to store the sent message
|
||||||
|
|
Loading…
Reference in a new issue