Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

send dm to user discord.py

# sends a DM to the user

@client.event
async def on_message(message):
  msg = message.content

  if msg.startswith('Hello!'):
    await message.author.send("Well hello there!")
 
PREVIOUS NEXT
Tagged: #send #dm #user
ADD COMMENT
Topic
Name
8+8 =