当我的机器人加入服务器时,我试图让它向特定行会中的通道发送消息,代码如下: client.on('guildCreate', guild => { )}); 然后,它会发送这个错误: UnhandledPromiseRejectionWarning: TypeError: fn is not a function
at Map.fin
有时我不知道guildCreate和guildDelete事件。,我收到错误消息了吗?没有。不会触发错误消息。Intents.FLAGS.GUILD ] });
console.log('ready');
/* It's listening to the event `guildCreate` and then it's creating a
TypeError: fn不是客户端的函数。C:\Users\nippo\Desktop\aniGuesser\node_modules@discordjs\collection\dist\index.js:160 if (fn(val,key,顺便说一句,即使我使用粘贴桶,只更改它周围的单词,仍然存在这个错误。