give user role discord.py code example
Example 1: how to give a role permissions discord py
server = ctx.message.server
perms = discord.Permissions(send_messages=False, read_messages=True)
await client.create_role(server, name='NoSend', permissions=perms)
Example 2: How to create role discord.py
guild = ctx.guild
await guild.create_role(name="role name")