robin ✫
robin ✫
DIAdiscord.js - Imagine an app
Created by robin ✫ on 3/2/2024 in #djs-questions
Difference between client.on("ready") and client.once(Events.ClientReady)
What is the difference between these two?
client.on("ready", () => {
// code
});

client.once(Events.ClientReady, readyClient => {
// code
});
client.on("ready", () => {
// code
});

client.once(Events.ClientReady, readyClient => {
// code
});
3 replies