From 412a90df6a52860e4a6cd8b5ae077de2220bf5e7 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Wed, 2 Oct 2024 04:42:00 -0600 Subject: [PATCH] fix starboard --- events/messageReactionAdd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/messageReactionAdd.js b/events/messageReactionAdd.js index 2fe3bac..9aba0df 100644 --- a/events/messageReactionAdd.js +++ b/events/messageReactionAdd.js @@ -23,7 +23,7 @@ module.exports = async (client, reaction, user) => { if (reaction.message.content.length) {starEmbed.addField("Message", reaction.message.content);} starEmbed .addField("Stars", `:star: ${reaction.count}`, true) - .addField(`${reaction.message.member.displayName.toLowerCase().endsWith('s') ? `${reaction.message.member.displayName}'` : `${reaction.message.member.displayName}'s`} StarBoard Count`, sd.starCount[reaction.message.author.id] ? sd.starCount[reaction.message.author.id] + 1 : 1, true); + .addField(`${reaction.message.member.displayName.toLowerCase().endsWith('s') ? `${reaction.message.member.displayName}'` : `${reaction.message.member.displayName}'s`} StarBoard Count`, `${sd.starCount[reaction.message.author.id] ? sd.starCount[reaction.message.author.id] + 1 : 1}`, true); if (reaction.message.attachments.size) {starEmbed.setImage(reaction.message.attachments.first().url);} if (Object.keys(sd.stars).includes(reaction.message.id)) { let starMessage = await reaction.message.guild.channels.cache.get(tg.starchannel).messages.fetch(sd.stars[reaction.message.id]);