I think this fixes unchanging notifications
This commit is contained in:
parent
f78caf4783
commit
7d61f19be2
@ -609,6 +609,7 @@ const functions = {
|
|||||||
const collector = channel.createMessageCollector({ filter });
|
const collector = channel.createMessageCollector({ filter });
|
||||||
collector.on('collect', message => {
|
collector.on('collect', message => {
|
||||||
if (message.embeds.length == 0) return;
|
if (message.embeds.length == 0) return;
|
||||||
|
guildInfo = client.guildInfos.get(guild.id);
|
||||||
console.log(message.embeds);
|
console.log(message.embeds);
|
||||||
if (message.embeds[0].data.description.includes(strings.notifications.water)) {
|
if (message.embeds[0].data.description.includes(strings.notifications.water)) {
|
||||||
this.sendReminder(guildInfo, guildInfo.waterMessage, guildInfo.reminderChannelId, guild);
|
this.sendReminder(guildInfo, guildInfo.waterMessage, guildInfo.reminderChannelId, guild);
|
||||||
|
Loading…
Reference in New Issue
Block a user