diff --git a/Robocop.py b/Robocop.py index 9f93e89..f79ad0b 100755 --- a/Robocop.py +++ b/Robocop.py @@ -149,7 +149,7 @@ async def on_message(message): if message.author.bot: return - if message.guild.id not in config.guild_whitelist: + if (message.guild) and (message.guild.id not in config.guild_whitelist): return ctx = await bot.get_context(message)