feat(arabot): add nvAccess on join if user is vegan

This commit is contained in:
smyalygames 2023-02-20 00:00:44 +00:00
parent a979c85079
commit e21bf55fc7

View File

@ -37,6 +37,10 @@ export class RolesJoinServerListener extends Listener {
const roles = await fetchRoles(member.id); const roles = await fetchRoles(member.id);
if (roles.includes(IDs.roles.vegan.vegan)) {
roles.push(IDs.roles.vegan.nvAccess);
}
// Check if the user is restricted // Check if the user is restricted
if (await checkActive(member.id)) { if (await checkActive(member.id)) {
const section = await getSection(member.id); const section = await getSection(member.id);