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

refactor(Util): replace Util.delayFor with tp.setTimeout #7082

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

kyranet
Copy link
Member

@kyranet kyranet commented Dec 8, 2021

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

Similar to #7036, this PR removes Util.delayFor in favor of built-ins (node:timers/promises exports a promisified setTimeout, which we import as sleep to avoid ESLint issues and naming conflicts).

This PR is also not semver: major because Util.delayFor is marked as @private, despite the typings saying it's public.

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 merged commit 25b8491 into discordjs:main Dec 8, 2021
@kyranet kyranet deleted the refactor/use-timers-promises branch December 8, 2021 20:37
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.

4 participants