feat: upgrade to discord.js v13.3.1
This commit is contained in:
parent
65b87f4e0b
commit
9105495d72
3 changed files with 206 additions and 51 deletions
|
@ -36,6 +36,7 @@ import { enableProfiling } from "./utils/easyProfiler";
|
|||
import { runPhishermanCacheCleanupLoop, runPhishermanReportingLoop } from "./data/loops/phishermanLoops";
|
||||
import { hasPhishermanMasterAPIKey } from "./data/Phisherman";
|
||||
import { consumeQueryStats } from "./data/queryLogger";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
if (!process.env.KEY) {
|
||||
// tslint:disable-next-line:no-console
|
||||
|
@ -227,7 +228,8 @@ connect().then(async () => {
|
|||
Intents.FLAGS.GUILD_VOICE_STATES,
|
||||
],
|
||||
});
|
||||
client.setMaxListeners(200);
|
||||
// FIXME: TS doesn't see Client as a child of EventEmitter for some reason
|
||||
(client as unknown as EventEmitter).setMaxListeners(200);
|
||||
|
||||
client.on(Constants.Events.RATE_LIMIT, (data) => {
|
||||
// tslint:disable-next-line:no-console
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue