mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 06:04:16 +02:00
feat(arabot): add nvAccess on join if user is vegan
This commit is contained in:
parent
a979c85079
commit
e21bf55fc7
@ -37,6 +37,10 @@ export class RolesJoinServerListener extends Listener {
|
||||
|
||||
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
|
||||
if (await checkActive(member.id)) {
|
||||
const section = await getSection(member.id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user