1
0
Fork 0

Group join delete also new comer role

This commit is contained in:
Ethanell 2020-11-01 21:22:41 +01:00
parent 661dcf3ba2
commit 6dc5addf5f

View file

@ -30,7 +30,7 @@ class PCP(commands.Cog):
if not role:
raise BadArgument()
roles = list(filter(lambda r: group_re.fullmatch(r.name.upper()), ctx.author.roles))
roles = list(filter(lambda r: group_re.fullmatch(r.name.upper()) or r.name == "nouveau venu", ctx.author.roles))
if role.name in map(lambda r: r.name, roles):
raise BadArgument()
elif roles: