From 5a4b2bbd56aa68b731c4d4c99bfde4ebd70580c5 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 17:14:26 +0100 Subject: [PATCH] a --- main-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-bot.py b/main-bot.py index 34dc4ca..e88a0b5 100644 --- a/main-bot.py +++ b/main-bot.py @@ -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: