This commit is contained in:
GZod01 2024-12-15 17:14:26 +01:00
parent d28ca32d1b
commit 5a4b2bbd56

View file

@ -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 type(channel) == type(discord.DMChannel):
if channel is discord.DMChannel:
await channel.send(f"**{full_name}({short_name})**: {message}")
return
if discord.utils.get(await channel.webhooks(),name=short_name) is None: