From 25d2a319baf98acb7cca947316e35da0b4b40f00 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 17:15:13 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20la=20v=C3=A9rification=20du=20type=20?= =?UTF-8?q?de=20canal=20dans=20la=20fonction=20say=5Fmessage=20pour=20util?= =?UTF-8?q?iser=20discord.channel.DMChannel.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-bot.py b/main-bot.py index e88a0b5..c964c09 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 channel is discord.DMChannel: + if channel is discord.channel.DMChannel: await channel.send(f"**{full_name}({short_name})**: {message}") return if discord.utils.get(await channel.webhooks(),name=short_name) is None: