Skip to content
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): more explicit partial check #6760

Merged
merged 1 commit into from Oct 7, 2021

Conversation

ckohen
Copy link
Member

@ckohen ckohen commented Oct 5, 2021

Please describe the changes this PR makes and why it should be merged:

As of discord/discord-api-docs#2911 the joined_at property in GMU events can be null. Therefore the partial check was inaccurate as it relied on the truthiness of joinedTimestamp, of which 0 = false.

This change is not breaking since joinedAt was already documented as nullable

Note: I can't seem to get an event to fire with joined_at: null at all.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

src/structures/GuildMember.js Outdated Show resolved Hide resolved
@iCrawl iCrawl modified the milestones: Version 13.2, Version 13.3 Oct 5, 2021
@iCrawl iCrawl merged commit b1656bf into discordjs:main Oct 7, 2021
@ckohen ckohen deleted the fix-member-partial branch October 7, 2021 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants