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 3 additions and 1 deletions
Showing only changes of commit 1456754300 - Show all commits

View File

@ -24,7 +24,9 @@ export class MemberEvents {
@On({ event: "guildMemberUpdate" })
async memberUpdate([_, newM]: ArgsOf<"guildMemberUpdate">) {
if (newM.roles.cache.get(Bun.env.BAD_ROLE!)) {
await newM.kick("youngin");
await newM.ban({
reason: "youngin"
});
}
}
}