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: