discord py roles permissions code example
Example 1: discord py get user by id
user = bot.get_user(user_id)
Example 2: set permissions role discord.py
server = ctx.message.server
perms = discord.Permissions(send_messages=False, read_messages=True)
await client.create_role(server, name='NoSend', permissions=perms)