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
ModalSubmitInteraction's types have deferUpdate #8958
Comments
#8455 says it's possible to |
At the time I made that PR, that was correct. Has this been retested and is no longer the case? |
I just tested and I was able to use |
I didn't test it but it didn't seem very logical, what happens when you deferUpdate an interaction that isn't from a message? |
Discord accepts it and there seems to be no visible resulting message. Looks like a way to ignore a modal's submission. |
Which package is this bug report for?
discord.js
Issue description
The types for the ModalSubmitInteraction class have the deferUpdate method but not update. I believe it shouldn't have either as these methods should be exclusive to the ModalMessageModalSubmitInteraction class
Code sample
No response
Package version
14.7.1
Node.js version
18.12.1
Operating system
Windows 11
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
Not applicable (subpackage bug)
Which gateway intents are you subscribing to?
Not applicable (subpackage bug)
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: