You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Message Component Collector and use the filter option. Notice how the interaction parameter is typed as any.
Codesample
import{Constants}from'discord.js';// Assuming 'msg' is a Message instanceconstcollector=msg.createMessageComponentCollector({componentType: Constants.MessageComponentTypes.BUTTON,// This does not make a difference currentlyfilter: (i)=>i.user.id===message.author.id,// Parameter 'i' implicitly has an 'any' type.time: 120e3,});