discord.py on_message see if user is bot code example
Example: check if user has manage messages discord.py
@client.event
async def on_message(message):
message.author.guild_permissions.manage_messages # returns bool
@client.event
async def on_message(message):
message.author.guild_permissions.manage_messages # returns bool