a
This commit is contained in:
parent
3ca68516f6
commit
b45d99ff84
1 changed files with 2 additions and 2 deletions
|
@ -69,11 +69,11 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe
|
||||||
print("ok2")
|
print("ok2")
|
||||||
if discord.utils.get(await channel.webhooks(),name=short_name) is None:
|
if discord.utils.get(await channel.webhooks(),name=short_name) is None:
|
||||||
print("ok3");
|
print("ok3");
|
||||||
webhook = await channel.create_webhook(name=short_name)
|
webhook = await channel.create_webhook(name=short_name,avatar=perso_image_raw)
|
||||||
print("ok4")
|
print("ok4")
|
||||||
else:
|
else:
|
||||||
print("ok5")
|
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("ok6")
|
||||||
print("ok7")
|
print("ok7")
|
||||||
await webhook.send(message,username=full_name)
|
await webhook.send(message,username=full_name)
|
||||||
|
|
Loading…
Reference in a new issue