I tried making an Interval and searching for a Guild and so on but it always says that it cannot Read the property 'users' of undefined and I don't seem to find the Problem here is the code I tried(我试着做一个间隔并搜索一个公会,依此类推,但它总是说它无法读取未定义的属性“ users”,而且我似乎也找不到问题,这是我尝试过的代码)
setInterval(function () {
client.guilds.find(g => g.id == '419967722349133825').users.forEach(function (guildMember) {
if (fs.existsSync("Warns for " + guildMember.id)) fs.unlinkSync("Warns for " + guildMember.id)
})
}, 2629800000);
Error Message(错误信息)
(node:11504) TimeoutOverflowWarning: 2629800000 does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
client.guilds.find(g => g.id == '419967722349133825').users.forEach(function (guildMember) {
^
TypeError: Cannot read property 'users' of undefined
ask by Link translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…