Will a Product Purchase That Gives a Member a Role Emit the GuildMemberUpdate Event?

If a member buys a server product, I want to confirm that the GuildMemberUpdate event will emit if they get the product's role
5 Replies
d.js toolkit
d.js toolkitβ€’14mo 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! - βœ… Marked as resolved by OP
μ‘°μ•„μ˜€
μ‘°μ•„μ˜€β€’14mo ago
if their roles changed, I believe an GuildMemberUpdate will be fired
Elitezen
ElitezenOPβ€’14mo ago
I just want to make sure it will emit even with the new server products feature. Else I'm going to have unhappy customers myDudes
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
As long as you have proper intents, it should
ShompiFlen
ShompiFlenβ€’14mo ago
it might not emit for members that are not cached on start, you would either have to fetch all members on ready or use partial structures, but the last one will make the oldmember to have nulled properties (be a partial)
Want results from more Discord servers?
Add your server