Unable to get member data from users that have left / kicked
Hi, I am trying to get data from members who have left the discord server or have been kicked. But I keep getting undefined errors and I am unsure why here is my code. This only happen in sapphire
Solution:Jump to solution
1. Unrelated to Sapphire
2. You're implementing the event parameters incorrectly, see https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-guildMemberRemove...
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
6 Replies
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Thank you also I def didn’t get timed out for calling my self dumb 😂
Sadly this did not work,
I also tried to pass in the PartialGuildMember Type, PartialUser Type and User Type to the event listener it self
/listeners/events/member.js" TypeError: Cannot read properties of undefined (reading 'partial')
My intents are setup
Solution
1. Unrelated to Sapphire
2. You're implementing the event parameters incorrectly, see https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-guildMemberRemove
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
I did not even notice I had the guild parameter there
thank you