mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2025-12-14 20:45:15 +01:00
✨ status command
This commit is contained in:
4
src/utils.py
Normal file
4
src/utils.py
Normal file
@@ -0,0 +1,4 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user