Node.js 使用ShardingManager&;反应收集器问题
发出收集器返回0个已收集的项目,而它应该收集这些项目Node.js 使用ShardingManager&;反应收集器问题,node.js,discord,discord.js,Node.js,Discord,Discord.js,发出收集器返回0个已收集的项目,而它应该收集这些项目 client.shard.broadcastEval(` (异步()=>{ const channel=等待this.channels.cache.get('${where.id}'); 中频(信道){ 常数时间=6000; send({embed:${JSON.stringify(embed)}}){ 等待消息,做出反应✅') 等待消息,做出反应❎') 常量过滤器=(反应,用户)=>{ return reaction.emoji.name=
client.shard.broadcastEval(`
(异步()=>{
const channel=等待this.channels.cache.get('${where.id}');
中频(信道){
常数时间=6000;
send({embed:${JSON.stringify(embed)}}){
等待消息,做出反应✅')
等待消息,做出反应❎')
常量过滤器=(反应,用户)=>{
return reaction.emoji.name=='✅' && user.id==message.author.id;
};
const collector=message.createReactionCollector(过滤器,{time:time});
collector.on('collect',(反应,用户)=>{
console.log(“从”+user.tag中收集”+reaction.emoji.name+);
});
collector.on('end',collected=>{
console.log('Collected'+Collected.size+'items');
});
});
log('ToS协议处理程序:将ToS协议发送到${where.gulid}中的${who.author.username}');
}
})();`);
即使在屏幕截图中,它也显示了反应,它说收集了0个项目