diff --git a/src/listeners/verification/joinVC.ts b/src/listeners/verification/joinVC.ts index 29e8316..9588ccd 100644 --- a/src/listeners/verification/joinVC.ts +++ b/src/listeners/verification/joinVC.ts @@ -286,6 +286,7 @@ export class VerificationJoinVCListener extends Listener { roles: { vegan: false, activist: false, + araVegan: false, trusted: false, vegCurious: false, convinced: false, diff --git a/src/utils/verification.ts b/src/utils/verification.ts index 4068da5..3f1fd2f 100644 --- a/src/utils/verification.ts +++ b/src/utils/verification.ts @@ -22,7 +22,7 @@ import { CategoryChannel, ChannelType, GuildMember, - PermissionsBitField, + PermissionsBitField, Snowflake, TextChannel, time, User, @@ -135,12 +135,14 @@ export async function getVerificationRoles( roles: { vegan: boolean, activist: boolean, + araVegan: boolean trusted: boolean, vegCurious: boolean, convinced: boolean }, + manual: boolean = false, ) { - const rolesAdd = []; + const rolesAdd: Snowflake[] = []; if (roles.convinced) { rolesAdd.push(IDs.roles.nonvegan.convinced); } @@ -152,9 +154,12 @@ export async function getVerificationRoles( } if (roles.activist) { rolesAdd.push(IDs.roles.vegan.activist); - } else { + } else if (!manual) { rolesAdd.push(IDs.roles.verifyBlock); } + if (roles.araVegan) { + rolesAdd.push(IDs.roles.vegan.araVegan); + } if (roles.trusted) { rolesAdd.push(IDs.roles.trusted); } @@ -168,6 +173,7 @@ export async function getVerificationRoles( export async function finishDM(user: User, roles: { vegan: boolean, activist: boolean, + araVegan: boolean, trusted: boolean, vegCurious: boolean, convinced: boolean @@ -196,6 +202,7 @@ export async function finishVerifyMessages( roles: { vegan: boolean, activist: boolean, + araVegan: boolean trusted: boolean, vegCurious: boolean, convinced: boolean