recruitment/helper.py
async def _is_member(member: discord.Member, guild: discord.Guild):
        """
            Check if member already has any of roles
        """
        """
            Credits: Gr8
        """
        _membership_roles = [
            discord.utils.get(guild.roles, name=r)
            for r in [
                "Member",
                "Co-Leader",
                "Hub Officer",
                "Hub Supervisor" "Clan Deputy",
                "Clan Manager",
            ]
        ]
        _membership_roles = set(_membership_roles)
        author_roles = set(member.roles)
        return bool(len(author_roles.intersection(_membership_roles)) > 0)

            Check if member already has any of roles
        
Check if member already has any of roles
Check if member already has any of roles
async def _is_member(member: discord.Member, guild: discord.Guild):
        _membership_roles = [
            discord.utils.get(guild.roles, name=r)
            for r in [
                "Member",
                "Co-Leader",
                "Hub Officer",
                "Hub Supervisor" "Clan Deputy",
                "Clan Manager",
            ]
        ]
        _membership_roles = set(_membership_roles)
        author_roles = set(member.roles)
        return bool(len(author_roles.intersection(_membership_roles)) > 0)
async def _is_member ( member : discord . Member , guild : discord . Guild ) : """
            Credits: Gr8
        """ _membership_roles = [ discord . utils . get ( guild . roles , name = r ) for r in [ "Member" , "Co-Leader" , "Hub Officer" , "Hub Supervisor" "Clan Deputy" , "Clan Manager" , ] ] _membership_roles = set ( _membership_roles ) author_roles = set ( member . roles ) return bool ( len ( author_roles . intersection ( _membership_roles ) ) > 0 )
Check if member already has any of roles
Check if member already has any of roles
"""
            Check if member already has any of roles
        """ """
            Credits: Gr8
        """
member
discord.Member
guild
discord.Guild