I have a issue where if my bot is turned off and back on it isnt catching who is leaving at all
client.on('guildMemberRemove', member => {
client.channels.cache.get('1133203797771046912').send(
**${member.user.tag}**, Has Left ${member.guild.name}
);
});5 Replies
- 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!Event won't emit when the member isn't cached. You can change that by enabling the GuildMembers partial but note that member.user.tag will probably not work when
member.partial
is truethat didnt work
Can you be more specific than "didn't work"?