How would I send a private message to a specific role in Python
Here's what I've already done:
@bot.command(name='dm')
async def on_message(ctx):
role = get(ctx.guild.roles, id=839182749452992632)
for user in ctx.guild.members:
if user.roles == role:
await bot.send_message(user, 'hello')