/[sudobot]/branches/2.x/src/automod/Antijoin.ts
ViewVC logotype

Contents of /branches/2.x/src/automod/Antijoin.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (show annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 426 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 import { GuildMember } from "discord.js";
2 import Service from "../utils/structures/Service";
3
4 export default class Antijoin extends Service {
5 enabled = false;
6
7 async start(member: GuildMember) {
8 if (!this.enabled) {
9 return false;
10 }
11
12 await member.kick("Anti-join systems are active right now");
13 return true;
14 }
15
16 toggle() {
17 this.enabled = !this.enabled;
18 }
19 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26