dm fix
This commit is contained in:
4
DSbot.py
4
DSbot.py
@@ -111,7 +111,9 @@ async def on_message(message):
|
||||
return
|
||||
|
||||
# Channel check
|
||||
if message.channel.id not in ALLOWED_CHANNELS:
|
||||
# the below line will make it so the bot does not reply in DMs
|
||||
# if message.channel.id not in ALLOWED_CHANNELS:
|
||||
if not isinstance(message.channel, discord.DMChannel) and message.channel.id not in ALLOWED_CHANNELS:
|
||||
return
|
||||
|
||||
# Command prefix check
|
||||
|
||||
Reference in New Issue
Block a user