mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 01:24:14 +02:00
fix(arabot): fix check for updating roles on user on leave
This commit is contained in:
parent
3c3f74e0ee
commit
c8521d0c06
@ -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,
|
||||
)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user