guildMember.premiumSinceTimestamp
does this update to the timestamp of the latest boost, when a user boosts again?
4 Replies
- 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!thanks, so is there a way to detect multiple boosts using guildmemberupdate? or will i need to rely on booster messages
Yes. Thank you.
What about unboosting then? I can only detect when it goes from 1 -> 0 and not n->n-1 then?
maybe i should open a new thread, since the original q is answered?
to detect unboosts and boosts
well, if a user boosts the server, there is an increased multiplier for rep points in the server for every user
rep is like points
Do you know whether theres an event that triggers for the server when the number of boosts changes? it doesnt need to tell me which user did it
thank you, but is there an event triggered when this changes on the server
i mean which always triggers
doesnt need to tell me which member
oh
i would expect there to be an event that tells u if some data like that changes
i was thinking i could
* detect member boost using by checking for booster messages
* detect subsequent boosts by a member by checking for booster messages
* detect member unboost using guildmemberupdate (because i am only interested in knowing who the user is when it goes from 1->0)
* check when the overall server premium subscription count increases or decreases and put my rep multiplier logic there, and the other checks are just for knowing about multiple boosts made by a user
should i just use a cron or something for checking premium subscription count then
is that the best way
well, since there is no builtin way for tracking changes in that value
guildupdate?
Guess I will buy a boost and check