From b45d99ff8409faa6f30c7e6a7889302e72fb6c5e Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 16:21:49 +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 a3805fe..a693bf6 100644 --- a/main-bot.py +++ b/main-bot.py @@ -69,11 +69,11 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe print("ok2") if discord.utils.get(await channel.webhooks(),name=short_name) is None: print("ok3"); - webhook = await channel.create_webhook(name=short_name) + webhook = await channel.create_webhook(name=short_name,avatar=perso_image_raw) print("ok4") else: print("ok5") - webhook = discord.utils.get(await channel.webhooks(),name=short_name,avatar=perso_image_raw) + webhook = discord.utils.get(await channel.webhooks(),name=short_name) print("ok6") print("ok7") await webhook.send(message,username=full_name)