3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

feat: upgrade to discord.js v13.3.1

This commit is contained in:
Dragory 2021-11-02 21:17:00 +02:00
parent 65b87f4e0b
commit 9105495d72
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 206 additions and 51 deletions

View file

@ -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