Corrige la vérification du type de canal dans la fonction say_message pour utiliser la propriété guild.
This commit is contained in:
parent
25d2a319ba
commit
29ea089b52
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe
|
|||
# print(short_name,full_name,perso_image)
|
||||
webhook = None
|
||||
# print("ok2")
|
||||
if channel is discord.channel.DMChannel:
|
||||
if channel.guild is None:
|
||||
await channel.send(f"**{full_name}({short_name})**: {message}")
|
||||
return
|
||||
if discord.utils.get(await channel.webhooks(),name=short_name) is None:
|
||||
|
|
Loading…
Reference in a new issue