fix(shard): 🐛 Error being raised when message is sent in DMs.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user