From 64db5bedf18d604c9e3a1a984b8fb27eefc24118 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Tue, 18 May 2021 02:18:53 -0600 Subject: [PATCH] starboard bugs --- events/messageReactionAdd.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/events/messageReactionAdd.js b/events/messageReactionAdd.js index 8187c5b..6555851 100644 --- a/events/messageReactionAdd.js +++ b/events/messageReactionAdd.js @@ -34,6 +34,8 @@ module.exports = async (client, reaction, user) => { sd.stars[reaction.message.id] = starEmbedMessage.id; sd.starCount[reaction.message.author.id] = sd.starCount[reaction.message.author.id] ? sd.starCount[reaction.message.author.id] + 1 : 1; sd.serverStarCount += 1; + sd.markModified(`starCount.${reaction.message.author.id}`); + sd.markModified(`stars.${reaction.message.id}`); sd.save(); } }