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
d.js toolkit
d.js toolkit12mo ago
- 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!
treble/luna
treble/luna12mo ago
its the type you expect to collect if you specified the componentType, ts should infer it
ned
nedOP12mo ago
I am trying to create a function instead of putting a lambda directly in the options just for stylistic purposes
treble/luna
treble/luna12mo ago
then that collector can be any component interaction
Want results from more Discord servers?
Add your server