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: fixed TS 4.8 compatibility #8601

Merged
merged 4 commits into from Sep 8, 2022

Conversation

favna
Copy link
Contributor

@favna favna commented Sep 6, 2022

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

Currently, users of DiscordJS v13 and TypeScript 4.8 require using "skipLibCheck": true because the changed line raises type errors.

At the same time, however, fixing the issue is unfeasible because it would also require 0.33.6 of discord-api-types. I tried tracing the issue back to the source and the best I got went into APITextInputComponent and I can't go and change discord-api-types in node_modules.

Other than that I also cleaned up some unused imports that were showing up.

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

@vercel
Copy link

vercel bot commented Sep 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
discord-js ❌ Failed (Inspect) Sep 8, 2022 at 9:35AM (UTC)

@vercel vercel bot temporarily deployed to Preview September 6, 2022 16:58 Inactive
@vercel vercel bot temporarily deployed to Preview September 6, 2022 17:01 Inactive
@vercel vercel bot temporarily deployed to Preview September 6, 2022 17:13 Inactive
typings/index.d.ts Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview September 8, 2022 09:35 Inactive
@iCrawl iCrawl merged commit e6ee7d8 into discordjs:v13 Sep 8, 2022
@favna favna deleted the fix/typescript-4.8-compatibility branch September 8, 2022 17:20
@RedGuy12 RedGuy12 mentioned this pull request Oct 4, 2022
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

6 participants