Allow DM commands
This commit is contained in:
parent
d38b1a8065
commit
0516e6ed4a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue