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
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!
d.js docs
d.js docs11mo ago
Suggestion for @theshyperidot:guide Popular Topics: Partial Structures read more
edocsil
edocsil11mo ago
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 true
TheShyPeridot
TheShyPeridot11mo ago
that didnt work
edocsil
edocsil11mo ago
Can you be more specific than "didn't work"?