20多年来,我一直在试图找出此代码中的问题。出于某种未知的原因,这是行不通的,我已经在其他多个渠道上尝试过,但仍然行不通,有什么主意吗? (这是V12 btw)
client.on('guildMemberAdd', member => {
const welcomechannel = member.guild.channels.cache.find(channel => channel.id === '566953910141452288');
if(!welcomechannel) return;
console.log(welcomechannel);
welcomechannel.send(`Welcome!`)
}) ```