C: \ Users \ Maci Laci \ Desktop \ Ryde eSports Reaction \ index. js: 38 if (message.channels.find (channel => channel.name === "teszt")) {^ TypeError: невозможно прочитать свойство 'find' неопределенного
client.on('messageReactionAdd', (reaction, message, user) => {
if(message.channels.find(channel => channel.name === "teszt")) {
if(reaction.emoji.name === '✅') {
var guildMember = reaction.message.guild.member(user);
var role = reaction.message.guild.roles.cache.find(r => r.name == rolename);
guildMember.roles.add(role);
console.log(megszoba);
}
} else {
console.log("Nem találtam a szobát!");
}
})```