#Welcome message send twice

7 messages · Page 1 of 1 (latest)

steel garnetBOT
#

• 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.

loud marsh
#

Is your bot running twice? Or do you have two files with that guildMemberAdd handler in your events folder?

loud marsh
#

Add a console.log(client.listenerCount('guildMemberAdd')) at the beginning of that file‘s execute there please

#

No wait, client.client.listenerCount

#

Because what you call client there is actually a GuildMember

little kraken
#

I tried this and even though the listener count is 1, every event fires twice
And there is no other instance of the bot running.

loud marsh