refactor: ban user instead of kicking them #1

Merged
cosmic merged 2 commits from :refactor/ban-user into main 2025-03-15 17:24:23 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 432e6b1291 - Show all commits

View File

@ -5,7 +5,7 @@ export const underageCheck = async (members: GuildMemberManager) => {
const badMems = members.cache.filter(
(m) => m.roles.cache.get(Bun.env.BAD_ROLE!) != undefined,
);
badMems.forEach((m) => m.kick("youngin").then());
badMems.forEach((m) => m.ban({reason: "youngin"}).then());
await sleep(180000);
}
};