From e9a5724e00e134406f7243fe428a1e88e766c6fd Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 2 Apr 2021 15:15:16 -0500 Subject: [PATCH] Attempt to fix missing guild in userUpdate --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }); });