diff --git a/index.js b/index.js index b3ca72e..b5a91d6 100644 --- a/index.js +++ b/index.js @@ -355,8 +355,8 @@ client.on('userUpdate', (oldUser, newUser) => { console.error; } botLogsChannel = result.bot_logs_id; - if (channel.guild.channels.cache.get(botLogsChannel)) { - channel.guild.channels.cache.get(botLogsChannel).send(userUpdateEmbed).catch(console.error); + if (client.channels.cache.get(botLogsChannel)) { + client.channels.cache.get(botLogsChannel).send(userUpdateEmbed).catch(console.error); } }); });