I think this fixes unchanging notifications

This commit is contained in:
Skylar Grant 2023-02-12 18:15:03 -05:00
parent f78caf4783
commit 7d61f19be2

View File

@ -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);