Possible EventEmitter memory leak detected. 11 guildMemberAdd listeners added to [Client]. Use emitter.setMaxListeners() to increase limit issue
10:12 17 Jun 2020

I am trying to make a welcome message but it makes my bot spam the welcome message for some reason can someone help?

Here is my code:

    // Send the message to a designated channel on a server:
    const channel = member.guild.channels.cache.find(ch => ch.name === 'yo');


    // Do nothing if the channel wasn't found on this server
    if (!channel) return;

    const welcome = new Discord.MessageEmbed()
    .setDescription(`***Welcome to Tracy*** ${member}***Boost Us!***`)
    .setImage('https://media0.giphy.com/media/SwUpQs8oVWvZG5vpyS/giphy.gif')
    .setColor(0x5933A0)
    message.channel.send(welcome);
  });

This is the error it gives me:

"Possible EventEmitter memory leak detected. 11 guildMemberAdd listeners added to [Client]. Use emitter.setMaxListeners() to increase limit"

Where do I put the emitter.setMaxListeners() and what else should be included?

javascript node.js discord discord.js