discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

Property 'type' is required in interface TextInputComponentData

Open ImRodry opened this issue 2 years ago • 0 comments

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

ImRodry avatar Aug 07 '22 14:08 ImRodry