check if user has manage messages discord.py

@client.event
async def on_message(message):
  message.author.guild_permissions.manage_messages # returns bool

Here is what the above code is Doing:
1. It’s checking if the message author has the manage_messages permission.
2. If they do, it returns True.
3. If they don’t, it returns False.

Now, let’s use this in our code: