aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcogs/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index 012a8c3..752a7b7 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -161,6 +161,8 @@ class Utils(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message):
+ if not message.guild:
+ return
if message.channel.id != int(self.bot.config[str(message.guild.id)]["fair_channel"]):
return
if message.author.bot: