3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 18:47:20 +00:00

Update Client Events

Changed client event "ready" and "error" to use the Events import as the "ready" will be replaced by "clientReady" in v15 of discord.js.

https://v15.discordjs.guide/additional-info/updating-from-v14.html#client
This commit is contained in:
Bradyn 2025-02-04 12:54:01 +11:00 committed by GitHub
parent eb5fda8d19
commit 3c530990f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,7 +274,7 @@ connect().then(async () => {
}
});
client.on("error", (err) => {
client.on(Events.Error, (err) => {
errorHandler(new DiscordJSError(err.message, (err as any).code, 0));
});
@ -371,7 +371,7 @@ connect().then(async () => {
},
});
client.once("ready", () => {
client.once(Events.ClientReady, () => {
startUptimeCounter();
});