Fix: remove strict TextChannel check, broaden channel support

This commit is contained in:
2026-08-16 23:03:55 -05:00
parent ab0a72b660
commit 3d5a207b13
+1 -3
View File
@@ -70,12 +70,10 @@ class Assistant(commands.Cog):
async def on_message(self, message: discord.Message):
if message.author.bot:
return
if not isinstance(message.channel, discord.TextChannel):
if not message.guild:
return
guild = message.guild
if guild is None:
return
# Debug: react with 1️⃣ to confirm listener fires
if self.bot.user in message.mentions: