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 toolkit16mo 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
조아오
조아오16mo ago
if their roles changed, I believe an GuildMemberUpdate will be fired
Elitezen
ElitezenOP16mo 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
ShompiFlen16mo 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