discord buttons collector

Solutions on MaxInterview for discord buttons collector by the best coders in the world

showing results for - "discord buttons collector"
Elisa
06 Aug 2020
1let sent = message.channel.send("text", button)
2
3function filter(b){ b.clicker.user.id === message.author.id }
4const collector = sent.createButtonCollector(filter, { time: 120000 })
5
6collector.on("collect", async btn => {
7	console.log(btn.id)
8});