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:
parent
eb5fda8d19
commit
3c530990f4
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue