3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-07 16:05:01 +00:00

feat: update to djs 14.19.3, node 22, zod 4

This commit is contained in:
Dragory 2025-05-22 22:35:48 +00:00
parent 595e1a0556
commit 09eb8e92f2
No known key found for this signature in database
189 changed files with 1244 additions and 900 deletions

View file

@ -12,7 +12,6 @@ import {
TextChannel,
ThreadChannel,
} from "discord.js";
import { EventEmitter } from "events";
import { Knub, PluginError, PluginLoadError, PluginNotLoadedError } from "knub";
import moment from "moment-timezone";
import { performance } from "perf_hooks";
@ -252,9 +251,8 @@ connect().then(async () => {
GatewayIntentBits.GuildVoiceStates,
],
});
// FIXME: TS doesn't see Client as a child of EventEmitter for some reason
// If you're here because of an error from TS 5.5.2, see https://github.com/discordjs/discord.js/issues/10358
(client as unknown as EventEmitter).setMaxListeners(200);
client.setMaxListeners(200);
const safe429DecayInterval = 5 * SECONDS;
const safe429MaxCount = 5;