Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord-buttons collector

let sent = message.channel.send("text", button)

function filter(b){ b.clicker.user.id === message.author.id }
const collector = sent.createButtonCollector(filter, { time: 120000 })

collector.on("collect", async btn => {
	console.log(btn.id)
});
 
PREVIOUS NEXT
Tagged: #collector
ADD COMMENT
Topic
Name
8+9 =