From dbd25b796b694c05c340f05f4483b7901f4779db Mon Sep 17 00:00:00 2001 From: smyalygames Date: Mon, 20 Feb 2023 01:26:43 +0000 Subject: [PATCH] feat(arabot): add nv access for vegan unrestricts --- src/commands/mod/restriction/unrestrict.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/mod/restriction/unrestrict.ts b/src/commands/mod/restriction/unrestrict.ts index 42c3d86..eef445f 100644 --- a/src/commands/mod/restriction/unrestrict.ts +++ b/src/commands/mod/restriction/unrestrict.ts @@ -173,6 +173,9 @@ export class UnRestrictCommand extends Command { if (await checkActive(userId)) { const roles = await fetchRoles(userId); + if (roles.includes(IDs.roles.vegan.vegan)) { + roles.push(IDs.roles.vegan.nvAccess); + } await member.roles.add(roles); // Unrestricts the user on the database await unRestrict(userId, modId);