From e235f064d80a9fe362eeae99a296ae91e7cadae9 Mon Sep 17 00:00:00 2001 From: Supositware Date: Mon, 10 Jul 2023 01:13:29 +0200 Subject: [PATCH] Fix custom emotes in starboard/shameboard --- events/client/messageReactionAdd.js | 2 +- events/client/messageReactionRemove.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/events/client/messageReactionAdd.js b/events/client/messageReactionAdd.js index 4c1d6818..238b3e0f 100644 --- a/events/client/messageReactionAdd.js +++ b/events/client/messageReactionAdd.js @@ -128,7 +128,7 @@ export default { .setFooter({ text: `${emote} ${reactionCount}` }) .setTimestamp(); - if (reaction.message.guild.emojis.resolve(emote)) Embed.setFooter(reactionCount, reaction.message.guild.emojis.resolve(emote).url); + if (reaction.message.guild.emojis.resolve(emote)) Embed.setFooter({ text: `${reactionCount}`, iconURL: reaction.message.guild.emojis.resolve(emote).url }); let description = null; diff --git a/events/client/messageReactionRemove.js b/events/client/messageReactionRemove.js index 869819a5..6f4e1870 100644 --- a/events/client/messageReactionRemove.js +++ b/events/client/messageReactionRemove.js @@ -111,7 +111,7 @@ export default { .setFooter({ text: `${emote} ${reactionCount}` }) .setTimestamp(); - if (reaction.message.guild.emojis.resolve(emote)) Embed.setFooter(reactionCount, reaction.message.guild.emojis.resolve(emote).url); + if (reaction.message.guild.emojis.resolve(emote)) Embed.setFooter({ text: `${reactionCount}`, iconURL: reaction.message.guild.emojis.resolve(emote).url }); message.edit({ embeds: [Embed] }); }