mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-02 22:19:49 +01:00
feat(arabot): enable give roles back on join
This commit is contained in:
parent
12d4445428
commit
946b8e4440
@ -19,7 +19,7 @@
|
||||
|
||||
import { Listener } from '@sapphire/framework';
|
||||
import type { GuildMember } from 'discord.js';
|
||||
// import { fetchRoles } from '#utils/database/dbExistingUser';
|
||||
import { fetchRoles } from '#utils/database/dbExistingUser';
|
||||
import IDs from '#utils/ids';
|
||||
import { blockTime } from '#utils/database/verification';
|
||||
import { checkActive, getSection } from '#utils/database/restriction';
|
||||
@ -35,8 +35,7 @@ export class RolesJoinServerListener extends Listener {
|
||||
public async run(member: GuildMember) {
|
||||
// Add basic roles
|
||||
|
||||
const roles = [];
|
||||
// const roles = await fetchRoles(member.id);
|
||||
const roles = await fetchRoles(member.id);
|
||||
|
||||
// Check if the user is restricted
|
||||
if (await checkActive(member.id)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user