Squid
DIdiscord.js - Imagine ❄
•Created by Squid on 11/4/2022 in #djs-questions
Message Component Collector Component Types
If you create a component collector on a message while listening for only one component type, you can simply pass
componentType: ComponentType....
into your options object. However, if you have a message with multiple component types and want a collector that listens for any type, then you have to pass a generic union into the method since the options object only allows one componentType
, not an array; excluding the componentType
makes collected
return unknown
. Is this the intended best method of doing such?
Minimum reproducible example:
DJS v14.6.0, Node v19.0.02 replies