-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Typing] interaction.followUp()
should not have ephemeral
in its options?
#10335
Comments
Sounds like you are following up on a deferred response and assumed this to be not true. Follow-ups can happen after the initial response and may be ephemeral. |
Oh, okay! It sounds like a type intersection is missing for this case. |
There's absolutely no need to ping someone twice in less than two hours. I'd rather not have to split the type that followUp accepts based on a stateful parameter. |
There's absolutely no need to close an issue as not planned in less than 2 minutes. Especially when the issue is totally related to the SDK. |
That is the answer though. We don't plan to change this. |
Which package is this bug report for?
discord.js
Issue description
Currently, Discord.js allows to write this:
(In my current code,
interaction
has the type:ChatInputCommandInteraction
)This has already been discussed here, and the "API limitation" concern is still relevant since I had the same problem today: #5702
Therefore, I think that the typing should invalidate the use of this option.
Current typing is misleading: it suggests that you can do a followUp with an ephemeral, whereas in practice this is not true.
Code sample
No response
Versions
discord.js : 14.15.3
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: