mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-22 04:21:28 +01:00
fix(arabot): fix check for updating roles on user on leave
This commit is contained in:
@@ -166,7 +166,7 @@ export class UnRestrictCommand extends Command {
|
||||
return info;
|
||||
}
|
||||
|
||||
// Check if mod is in database
|
||||
// Check if user is in database
|
||||
await addExistingUser(member);
|
||||
|
||||
const restrictRoles = IDs.roles.restrictions.restricted;
|
||||
|
||||
@@ -31,7 +31,7 @@ export class DbLeaveServerListener extends Listener {
|
||||
}
|
||||
|
||||
public async run(member: GuildMember) {
|
||||
if (!member.roles.cache.hasAny(
|
||||
if (member.roles.cache.hasAny(
|
||||
IDs.roles.vegan.vegan,
|
||||
IDs.roles.nonvegan.nonvegan,
|
||||
)) {
|
||||
|
||||
Reference in New Issue
Block a user