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(Shard): eval promise never resolves #6649

Merged
merged 1 commit into from Sep 23, 2021

Conversation

DTrombett
Copy link
Contributor

fix #6626

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

Passing a function as a parameter in Shard#eval() would return a promise that never resolves due to stringifying the function as described in the linked issue.
This PR fixes that problem.

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

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, if you tested it and it works, LGTM

@iCrawl iCrawl merged commit 5070d23 into discordjs:main Sep 23, 2021
@iCrawl iCrawl added this to the Version 13.2 milestone Sep 23, 2021
@DTrombett DTrombett deleted the fix/shard-eval branch September 23, 2021 11:48
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.

Bug: <Shard>.eval(() => someFunction) returns infinite promise
5 participants