gpt4 book ai didi

discord.js - TypeError : member. guild.channels.get 不是函数

转载 作者:行者123 更新时间:2023-12-04 15:32:34 25 4
gpt4 key购买 nike

我该怎么做才能修复“类型错误:member.guild.channels.get 不是函数”

client.on('guildMemberRemove', member => {
member.guild.channels.get('692319439542157435').send('**' + member.user.username + '**, has left the server');
})

最佳答案

member.guild.channels.cache.get('692319439542157435') 用于 discord v12。

client.on('guildMemberRemove', member => {
member.guild.channels.cache.get('692319439542157435').send('**' + member.user.username + '**, has left the server');
})

关于discord.js - TypeError : member. guild.channels.get 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60883461/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com