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

[@Dev][TS] getChannel<const T...> not valid typescript #9700

Closed
Mara-Li opened this issue Jul 11, 2023 · 2 comments
Closed

[@Dev][TS] getChannel<const T...> not valid typescript #9700

Mara-Li opened this issue Jul 11, 2023 · 2 comments

Comments

@Mara-Li
Copy link

Mara-Li commented Jul 11, 2023

Which package is this bug report for?

discord.js

Issue description

First, I hope it's the good place to fill issue about the dev-branch development.

I noticed, after installation of the dev branch/tag (npm i discord.js@dev), that the package (index.d.ts) has some problems.

image

It seems that <const T syntax is incorrect. Because of that, the package is broken for a lot of part. For example: TS2339: Property  getString  does not exist on type  CommandInteractionOptionResolver<CacheType>

If I "local" edit the package with removing the const part, the plugin work as excepted.

Code sample

No response

Versions

  • discord.js 14.11.1-dev.1689034320-09b0382.0
  • node v18.16.0
  • typescript 4.9.5
  • Windows 11

Issue priority

Medium (should be fixed soon)

Which partials do you have configured?

User, Channel, GuildMember

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildMessages, MessageContent

I have tested this issue on a development release

09b0382.0

@Jiralite
Copy link
Member

This is simply an outdated TypeScript version.

@Mara-Li
Copy link
Author

Mara-Li commented Jul 11, 2023

Feels stupid, I totally forgot to upgrade my typescript version :'D

Sorry for the inconvenience!

@Mara-Li Mara-Li closed this as completed Jul 11, 2023
@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants