This commit is contained in:
GZod01 2024-12-15 16:21:49 +01:00
parent 3ca68516f6
commit b45d99ff84

View file

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