Event Emitter emits custom event twice

client.emit("loggerAdd", loggerData)
console.log("emitted")
client.emit("loggerAdd", loggerData)
console.log("emitted")
client.on("loggerAdd", () => {
console.log("received")
})
client.on("loggerAdd", () => {
console.log("received")
})
console
emitted
received
received
emitted
received
received
my code doesn't look exactly like this by similar
3 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
treble/luna
treble/luna11mo ago
this isnt really djs related as its just eventemitter, #other-js-ts and make sure you dont have multiple instances
PAdventures
PAdventuresOP11mo ago
oki srry.
Want results from more Discord servers?
Add your server