Answers for "python bot how to dm users"

0

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
-2

how to make discord.py rewrite bot dm someone

@bot.command()
async def pm(ctx):
    user_id_list = [1, 2, 3] # Replace this with list of IDs
    for user_id in user_id_list:
        user = await bot.get_user_info(user_id)
        await user.send('hello')
Posted by: Guest on May-17-2020

Code answers related to "python bot how to dm users"

Python Answers by Framework

Browse Popular Code Answers by Language