Reordered if statements to allow nsfw channels in DM's
This commit is contained in:
parent
4db5e57a98
commit
dae3e4761e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue