mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-09-16 06:52:20 +02:00
feat(arabot): add nv access for vegan unrestricts
This commit is contained in:
parent
a8691c0587
commit
dbd25b796b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user