feat(arabot): add nv access for vegan unrestricts

This commit is contained in:
smyalygames 2023-02-20 01:26:43 +00:00
parent a8691c0587
commit dbd25b796b

View File

@ -173,6 +173,9 @@ export class UnRestrictCommand extends Command {
if (await checkActive(userId)) { if (await checkActive(userId)) {
const roles = await fetchRoles(userId); const roles = await fetchRoles(userId);
if (roles.includes(IDs.roles.vegan.vegan)) {
roles.push(IDs.roles.vegan.nvAccess);
}
await member.roles.add(roles); await member.roles.add(roles);
// Unrestricts the user on the database // Unrestricts the user on the database
await unRestrict(userId, modId); await unRestrict(userId, modId);