mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-21 20:08:51 +01:00
fix(arabot): add check for restricted user on database for unrestrictions
This commit is contained in:
@@ -131,7 +131,7 @@ export class UnRestrictCommand extends Command {
|
||||
}
|
||||
|
||||
// Check if mod is in database
|
||||
if (!await userExists(mod.id)) {
|
||||
if (!await userExists(modId)) {
|
||||
await addExistingUser(mod);
|
||||
}
|
||||
|
||||
@@ -147,6 +147,11 @@ export class UnRestrictCommand extends Command {
|
||||
return info;
|
||||
}
|
||||
|
||||
// Check if mod is in database
|
||||
if (!await userExists(userId)) {
|
||||
await addExistingUser(member);
|
||||
}
|
||||
|
||||
const restrictRoles = IDs.roles.restrictions.restricted;
|
||||
|
||||
// Checks if the user is not restricted
|
||||
|
||||
Reference in New Issue
Block a user