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 toolkit•3y 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 docs•3y ago
Suggestion for @theshyperidot:guide Popular Topics: Partial Structures read more
edocsil
edocsil•3y 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
TheShyPeridotOP•3y ago
that didnt work
edocsil
edocsil•3y ago
Can you be more specific than "didn't work"?

Did you find this page helpful?