refactor: ban user instead of kicking them

This commit is contained in:
Ananas 2025-03-15 13:23:36 +01:00
parent d44014224d
commit 1456754300
No known key found for this signature in database
GPG Key ID: CAE30FFA43F0F76F
1 changed files with 3 additions and 1 deletions

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"
});
}
}
}