diff --git a/events/client/messageReactionAdd.js b/events/client/messageReactionAdd.js index 1188551..509031a 100644 --- a/events/client/messageReactionAdd.js +++ b/events/client/messageReactionAdd.js @@ -87,10 +87,10 @@ export default { // If the message doesn't have embeds assume it got deleted so don't do anything if (!message) return; - // If the original embed description is empty make this embed empty ( and not undefined ) + // If the original embed description is empty make this embed null ( and not empty ) let description = message.embeds[0].description; if (!message.embeds[0].description || message.embeds[0].description == undefined) { - description = ''; + description = null; } const Embed = new EmbedBuilder() @@ -132,7 +132,7 @@ export default { if (reaction.message.guild.emojis.resolve(emote)) Embed.setFooter(reactionCount, reaction.message.guild.emojis.resolve(emote).url); - let description = ''; + let description = null; if (reaction.message.embeds[0]) { if (reaction.message.embeds[0].type == 'image') { diff --git a/events/client/messageReactionRemove.js b/events/client/messageReactionRemove.js index e0f1d80..0f10527 100644 --- a/events/client/messageReactionRemove.js +++ b/events/client/messageReactionRemove.js @@ -95,10 +95,10 @@ export default { // If the message doesn't have embeds assume it got deleted so don't do anything if (!message) return; - // If the original embed description is empty make this embed empty ( and not undefined ) + // If the original embed description is empty make this embed null ( and not empty ) let description = message.embeds[0].description; if (!message.embeds[0].description || message.embeds[0].description == undefined) { - description = ''; + description = null; } const Embed = new EmbedBuilder()