From b05baaea2d1a053e985c557e22de6c8d39a054d8 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 15:59:59 +0100 Subject: [PATCH] a --- main-bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main-bot.py b/main-bot.py index 8c4e64d..9cc4342 100644 --- a/main-bot.py +++ b/main-bot.py @@ -54,10 +54,10 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe full_name = row[1] perso_image = row[2] webhook = None - if await discord.utils.get(await channel.webhooks(),name=short_name) is None: + if discord.utils.get(await channel.webhooks(),name=short_name) is None: webhook = await channel.create_webhook(name=short_name,avatar=perso_image) else: - webhook = await discord.utils.get(await channel.webhooks(),name=short_name) + webhook = discord.utils.get(await channel.webhooks(),name=short_name) await webhook.send(message,username=full_name,avatar_url=perso_image) return True