From 0a6835eb8b45cf386e61636935eeec9c3c08e209 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 14:40:46 -0500 Subject: [PATCH] Use guilds.cache.get instead of guilds.get --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 3df0948..1054811 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ client.on('messageDelete', message => { .setFooter("ID: " + message.id) .setTimestamp() .setColor('ff0000'); - client.guilds.get("826506878976000030").channels.cache.get("826876551756513314").send(deleteEmbed).catch(console.error); + client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(deleteEmbed).catch(console.error); }); client.on('messageUpdate', (originalMessage, editedMessage) => { @@ -41,7 +41,7 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { .setFooter("ID: " + editedMessage.id) .setTimestamp() .setColor('006699'); - client.guilds.get("826506878976000030").channels.cache.get("826876551756513314").send(editEmbed).catch(console.error); + client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(editEmbed).catch(console.error); }); client.on('channelCreate', channel => { @@ -53,7 +53,7 @@ client.on('channelCreate', channel => { .setFooter("ID: " + channel.id) .setTimestamp() .setColor('006699'); - client.guilds.get("826506878976000030").channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error); + client.guilds.cache.get("826506878976000030").channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error); } });