how to make discord py rewrite bot dm someone

Solutions on MaxInterview for how to make discord py rewrite bot dm someone by the best coders in the world

showing results for - "how to make discord py rewrite bot dm someone"
Amin
15 Jul 2016
1@bot.command()
2async def pm(ctx):
3    user_id_list = [1, 2, 3] # Replace this with list of IDs
4    for user_id in user_id_list:
5        user = await bot.get_user_info(user_id)
6        await user.send('hello')