fix(arabot): fix check for updating roles on user on leave

This commit is contained in:
smyalygames 2023-03-06 23:59:39 +00:00
parent 3c3f74e0ee
commit c8521d0c06
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,
)) {