Answers for "how to private dm someone with discord.py"

1

how to make a discord bot dm someone python

@bot.command(pass_context = True)
async def dm(ctx, member : discord.Member, *, content: str):
    await bot.send_message(member, content)
Posted by: Guest on May-17-2020
0

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!")
Posted by: Guest on November-17-2021

Code answers related to "how to private dm someone with discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language