Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: member.guild.channels.get is not a function

Tags:

discord.js

What can I do to fix the "TypeError: member.guild.channels.get is not a function"

client.on('guildMemberRemove', member => {
member.guild.channels.get('692319439542157435').send('**' + member.user.username + '**, has left the server');
})
like image 888
YaBoiPingu Avatar asked Jan 26 '26 11:01

YaBoiPingu


1 Answers

member.guild.channels.cache.get('692319439542157435') for discord v12.

client.on('guildMemberRemove', member => {
    member.guild.channels.cache.get('692319439542157435').send('**' + member.user.username + '**, has left the server');
})
like image 152
Cipher Avatar answered Jan 29 '26 13:01

Cipher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!