The type of a <Message>.awaitMessageComponent() filter
I am trying to use <Message>.awaitMessageComponent() in typescript, but I just can't figure out what the type of the filter function is.
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!its the type you expect to collect
if you specified the componentType, ts should infer it
I am trying to create a function instead of putting a lambda directly in the options
just for stylistic purposes
then that collector can be any component interaction