From 7d61f19be2f5e1ef673dc7742bed2b3bd9a44865 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 12 Feb 2023 18:15:03 -0500 Subject: [PATCH] I think this fixes unchanging notifications --- modules/functions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/functions.js b/modules/functions.js index df5b86e..ce083a3 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -609,6 +609,7 @@ const functions = { const collector = channel.createMessageCollector({ filter }); collector.on('collect', message => { if (message.embeds.length == 0) return; + guildInfo = client.guildInfos.get(guild.id); console.log(message.embeds); if (message.embeds[0].data.description.includes(strings.notifications.water)) { this.sendReminder(guildInfo, guildInfo.waterMessage, guildInfo.reminderChannelId, guild);