mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-21 03:58:05 +01:00
feat(arabot): add nv access for vegan unrestricts
This commit is contained in:
@@ -173,6 +173,9 @@ export class UnRestrictCommand extends Command {
|
||||
|
||||
if (await checkActive(userId)) {
|
||||
const roles = await fetchRoles(userId);
|
||||
if (roles.includes(IDs.roles.vegan.vegan)) {
|
||||
roles.push(IDs.roles.vegan.nvAccess);
|
||||
}
|
||||
await member.roles.add(roles);
|
||||
// Unrestricts the user on the database
|
||||
await unRestrict(userId, modId);
|
||||
|
||||
Reference in New Issue
Block a user