Remove non-member role when user is verified

This commit is contained in:
Aadi Desai 2023-11-11 17:31:07 +00:00
parent 1fc926a989
commit b93194e57f
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM
3 changed files with 3 additions and 0 deletions

View file

@ -261,6 +261,7 @@ pub(crate) async fn login_6(
})
})
.await?;
let _ = mm.remove_role(&ctx.http, data.non_member).await;
if mm.roles.contains(&data.old_member) {
crate::verify::remove_role(ctx, &mut mm, data.old_member).await?;
} else {

View file

@ -252,6 +252,7 @@ pub(crate) async fn manual_4(
})
})
.await?;
let _ = member.remove_role(&ctx.http, data.non_member).await;
if member.roles.contains(&data.old_member) {
crate::verify::remove_role(ctx, &mut member, data.old_member).await?;
} else {

View file

@ -181,6 +181,7 @@ pub(crate) async fn membership_3(
})
})
.await?;
let _ = mm.remove_role(&ctx.http, data.non_member).await;
if mm.roles.contains(&data.old_member) {
crate::verify::remove_role(ctx, &mut mm, data.old_member).await?;
} else {