22 |
import SpamFilter from '../automod/SpamFilter'; |
import SpamFilter from '../automod/SpamFilter'; |
23 |
import Verification from '../services/Verification'; |
import Verification from '../services/Verification'; |
24 |
import Welcomer from '../services/Welcomer'; |
import Welcomer from '../services/Welcomer'; |
25 |
|
import Antijoin from '../automod/Antijoin'; |
26 |
|
|
27 |
export default class DiscordClient extends Client { |
export default class DiscordClient extends Client { |
28 |
private _commands = new Collection<string, BaseCommand>(); |
private _commands = new Collection<string, BaseCommand>(); |
50 |
debugLogger: DebugLogger; |
debugLogger: DebugLogger; |
51 |
verification: Verification; |
verification: Verification; |
52 |
welcomer: Welcomer; |
welcomer: Welcomer; |
53 |
|
antijoin: Antijoin; |
54 |
|
|
55 |
static client: DiscordClient; |
static client: DiscordClient; |
56 |
|
|
58 |
super({ |
super({ |
59 |
ws: { |
ws: { |
60 |
properties: { |
properties: { |
61 |
$browser: "Discord iOS" |
browser: "Discord iOS" |
62 |
} |
} |
63 |
}, |
}, |
64 |
...options |
...options |
88 |
this.debugLogger = new DebugLogger(this); |
this.debugLogger = new DebugLogger(this); |
89 |
this.verification = new Verification(this); |
this.verification = new Verification(this); |
90 |
this.welcomer = new Welcomer(this); |
this.welcomer = new Welcomer(this); |
91 |
|
this.antijoin = new Antijoin(this); |
92 |
|
|
93 |
discordModals(this); |
discordModals(this); |
94 |
} |
} |