📜  不和谐按钮收集器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:52.428000             🧑  作者: Mango

代码示例1
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)
});