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

feat(Guild): replace owner with fetchOwner #5480

Merged
merged 2 commits into from Apr 16, 2021

Conversation

advaith1
Copy link
Contributor

@advaith1 advaith1 commented Apr 5, 2021

Please describe the changes this PR makes and why it should be merged:
Removes Guild#owner and adds Guild#fetchOwner

Guild#owner relies on cache, so it is unreliable and will not always work. This is more of an issue now due to intents, as much fewer members are usually cached.

Guild#fetchOwner is a reliable way to get the owner, while still being simple.

This change has been proposed in the d.js server a few times: 1, 2, 3 (paste the msg links into Quick Switcher)

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
  • This PR changes the library's interface (methods or parameters added)
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

@iCrawl iCrawl merged commit 1be67b8 into discordjs:master Apr 16, 2021
@advaith1 advaith1 deleted the fetchowner branch April 16, 2021 05:04
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
GoldenAngel2 referenced this pull request in AnIdiotsGuide/guidebot Jul 8, 2021
Updated everything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants