i have a problem with guildMemberAdd event , is repeated twice .. how i can fix that ?

i use console.log() to check it the code :
const Discord = require("discord.js");
module.exports = async (client) => {
console.log("testing")
client.on("guildMemberAdd" , async (member) => {
console.log("events send")
});
};
const Discord = require("discord.js");
module.exports = async (client) => {
console.log("testing")
client.on("guildMemberAdd" , async (member) => {
console.log("events send")
});
};
he send this once
console.log("testing")
console.log("testing")
but send this twice
console.log("events send")
console.log("events send")
8 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
ruxiit
ruxiitOP2y ago
any one please ? Possible explain more ? same problem its return the same member object twice
ruxiit
ruxiitOP2y ago
the first output
ruxiit
ruxiitOP2y ago
the secend output
ruxiit
ruxiitOP2y ago
ruxiit
ruxiitOP2y ago
No, it didn't restart, but it delayed sending ready messages
ruxiit
ruxiitOP2y ago
ruxiit
ruxiitOP2y ago
i will give you the full code in dm ok ? why ? i will send u a repl link to check i use it to test my codes before i add it
Want results from more Discord servers?
Add your server