fix(shard): 🐛 Error being raised when message is sent in DMs.

This commit is contained in:
2025-03-16 11:19:58 -03:00
parent df8aef39e3
commit e24e7fcb6d
+3
View File
@@ -198,6 +198,9 @@ class Calls(base.Cog):
Handle messages in calls.
"""
if not isinstance(message.channel, (discord.channel.TextChannel)):
return
ctx = await self.bot.get_context(message)
if message.author.bot or ctx.valid: