Correct issue where the type of channel wasn't being checked
This commit is contained in:
parent
6af06cfa30
commit
69c7562c58
|
@ -34,7 +34,7 @@ def get_all_subcommands(command):
|
|||
|
||||
|
||||
async def channel_is_nsfw(channel):
|
||||
if channel is discord.DMChannel:
|
||||
if type(channel) is discord.DMChannel:
|
||||
server = 'DMs'
|
||||
else:
|
||||
server = str(channel.guild.id)
|
||||
|
|
Loading…
Reference in a new issue