Periksa apakah pesan ada di dm scord.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