我想知道为什么会收到此错误...听起来可能很糟糕,但我真的不明白! T-T
client.on("guildMemberAdd", async member => {
let welcome = member.guild.channels.cache.find(channel.name === "〢〘?〙?ιsᥴᥙssιoᥒ").send(`Coucou ! <@!${user.id}>`)
}),
答案 0 :(得分:2)
您在channel =>
调用中缺少find
函数参数声明。
client.on("guildMemberAdd", async (member) => {
let welcome = member.guild.channels.cache
.find((channel) => channel.name === "〢〘?〙?ιsᥴᥙssιoᥒ")
.send(`Coucou ! <@!${user.id}>`);
});