discord.py check if user has role with role id 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