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(GuildAuditLog): Remove Promises in constructor #7089

Merged
merged 4 commits into from Dec 14, 2021

Conversation

Jiralite
Copy link
Member

@Jiralite Jiralite commented Dec 9, 2021

Please describe the changes this PR makes and why it should be merged:
The constructor shouldn't be utilising Promises, so I've removed them by checking the cache and defaulting to creating an Invite.

changes also included channel_id & inviter_id which weren't being stored in the Invite class. I think this would be a loss if we don't expose that data as at least the developer can fetch the user/resolve the channel themselves as full objects are not sent across.

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

@iCrawl iCrawl requested a review from SpaceEEC December 10, 2021 09:08
src/structures/Invite.js Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

7 participants