discord py check the permission for a channel code example
Example 1: check if user has manage messages discord.py
@client.event
async def on_message(message):
message.author.guild_permissions.manage_messages # returns bool
Example 2: 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)