Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if message is in 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 :)
 
PREVIOUS NEXT
Tagged: #check #message #dm
ADD COMMENT
Topic
Name
7+2 =