New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(GuildMember): correctly check for premium_since #5312
Conversation
How does Discord propagate this property changing to |
not sure, I would assume though that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's hope for the best then.
if ('premium_since' in data) { | ||
this.premiumSinceTimestamp = data.premium_since === null ? null : new Date(data.premium_since).getTime(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ('premium_since' in data) { | |
this.premiumSinceTimestamp = data.premium_since === null ? null : new Date(data.premium_since).getTime(); | |
} | |
if ('premium_since' in data) this.premiumSinceTimestamp = data.premium_since && new Date(data.premium_since).getTime(); |
Please describe the changes this PR makes and why it should be merged:
This PR fixes a bug introduced by #4636,
GuildMember#premiumSinceTimestamp
was being set to 0 every time rather than nullStatus and versioning classification: