mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 12:54:17 +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);
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user