Browse Source

Attempt to fix missing guild in userUpdate

master
Abheek Dhawan 4 years ago
parent
commit
e9a5724e00
  1. 4
      index.js

4
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);
}
});
});

Loading…
Cancel
Save