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)