1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Reordered if statements to allow nsfw channels in DM's

This commit is contained in:
Phxntxm 2017-05-18 13:57:59 -05:00
parent 4db5e57a98
commit dae3e4761e

View file

@ -34,10 +34,10 @@ def get_all_subcommands(command):
async def channel_is_nsfw(channel):
if channel.is_nsfw():
return True
if type(channel) is discord.DMChannel:
server = 'DMs'
elif channel.is_nsfw():
return True
else:
server = str(channel.guild.id)