Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
robin ✫
Posts
Comments
DIA
discord.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