From 56a1f0edfcd39c6742889b4baf6ec73537644e4b Mon Sep 17 00:00:00 2001 From: driftywinds Date: Sun, 11 May 2025 17:33:12 +0000 Subject: [PATCH] dm fix --- DSbot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DSbot.py b/DSbot.py index 4f79521..53f2ce2 100644 --- a/DSbot.py +++ b/DSbot.py @@ -111,7 +111,9 @@ async def on_message(message): return # Channel check - if message.channel.id not in ALLOWED_CHANNELS: + # the below line will make it so the bot does not reply in DMs + # if message.channel.id not in ALLOWED_CHANNELS: + if not isinstance(message.channel, discord.DMChannel) and message.channel.id not in ALLOWED_CHANNELS: return # Command prefix check