Group join delete also new comer role
This commit is contained in:
parent
661dcf3ba2
commit
6dc5addf5f
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class PCP(commands.Cog):
|
||||||
if not role:
|
if not role:
|
||||||
raise BadArgument()
|
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):
|
if role.name in map(lambda r: r.name, roles):
|
||||||
raise BadArgument()
|
raise BadArgument()
|
||||||
elif roles:
|
elif roles:
|
||||||
|
|
Reference in a new issue