Verifique se a mensagem está em dm discord.py

@client.command()
async def check(ctx):
    if ctx.channel.type == discord.ChannelType.private:
        await ctx.send("Message is in dm")
    else:
      	await ctx.send("Message is not in dm")

# watch cocomelon :)
Cant Code