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 |
|
import Automute from '../automod/Automute'; |
27 |
|
|
28 |
export default class DiscordClient extends Client { |
export default class DiscordClient extends Client { |
29 |
private _commands = new Collection<string, BaseCommand>(); |
private _commands = new Collection<string, BaseCommand>(); |
51 |
debugLogger: DebugLogger; |
debugLogger: DebugLogger; |
52 |
verification: Verification; |
verification: Verification; |
53 |
welcomer: Welcomer; |
welcomer: Welcomer; |
54 |
|
antijoin: Antijoin; |
55 |
|
automute: Automute; |
56 |
|
|
57 |
static client: DiscordClient; |
static client: DiscordClient; |
58 |
|
|
60 |
super({ |
super({ |
61 |
ws: { |
ws: { |
62 |
properties: { |
properties: { |
63 |
$browser: "Discord iOS" |
browser: "Discord iOS" |
64 |
} |
} |
65 |
}, |
}, |
66 |
...options |
...options |
90 |
this.debugLogger = new DebugLogger(this); |
this.debugLogger = new DebugLogger(this); |
91 |
this.verification = new Verification(this); |
this.verification = new Verification(this); |
92 |
this.welcomer = new Welcomer(this); |
this.welcomer = new Welcomer(this); |
93 |
|
this.antijoin = new Antijoin(this); |
94 |
|
this.automute = new Automute(this); |
95 |
|
|
96 |
discordModals(this); |
discordModals(this); |
97 |
} |
} |