From 44215af3c1ad43bab0005ab2a406a5a7ba80d457 Mon Sep 17 00:00:00 2001 From: smyalygames Date: Sat, 18 Mar 2023 01:33:46 +0000 Subject: [PATCH] fix(arabot): fix handling nv access for vegan role command --- src/commands/roles/verification/vegan.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/roles/verification/vegan.ts b/src/commands/roles/verification/vegan.ts index 9465c8a..b28268e 100644 --- a/src/commands/roles/verification/vegan.ts +++ b/src/commands/roles/verification/vegan.ts @@ -145,6 +145,7 @@ export class VeganCommand extends Command { await member.roles.remove([ vegan, IDs.roles.vegan.activist, + IDs.roles.vegan.nvAccess, ]); await roleRemoveLog(user.id, mod.id, vegan); info.message = `Removed the ${vegan.name} role from ${user}`; @@ -153,7 +154,8 @@ export class VeganCommand extends Command { } // Add Vegan role to the user - await member.roles.add(vegan); + await member.roles.add([vegan, + IDs.roles.vegan.nvAccess]); await member.roles.remove([ IDs.roles.nonvegan.nonvegan, IDs.roles.nonvegan.convinced,