discord.js
discord.js copied to clipboard
Property 'type' is required in interface TextInputComponentData
Which package is this bug report for?
discord.js
Issue description
The type
is required when creating an object of TextInputComponentData type despite it always being assigned to the same value: ComponentType.TextInput. If this interface is meant to be used to provide data to a TextInputComponent in a Modal we shouldn't have to specify the type twice since it's already assumed by the interface name
Code sample
No response
Package version
14.1.2
Node.js version
18.7.0
Operating system
Windows 10
Priority this issue should have
Medium (should be fixed soon)
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