discord.py get member code example
Example 1: discord py get user by id
user = bot.get_user(user_id)
Example 2: on message discord py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')
Example 3: how to limit a command to a role in discord.py
@bot.command()
@commands.has_role('RoleName')
async def command_name():