mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2025-07-09 15:30:19 +02:00
5 lines
150 B
Python
5 lines
150 B
Python
def has_role(member, role: str):
|
|
"""Return whether the member has a role with this name."""
|
|
|
|
return any(r.name == role for r in member.roles)
|