1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-07-09 15:30:19 +02:00
Files
tfjm-discord-bot/src/utils.py
2020-04-29 16:28:08 +02:00

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)