1
0
Fork 0

I don't fucking know what i did before but i must have been drunk

akairo
loicbersier 4 years ago
parent 411eb541e5
commit b5c29cba29

@ -126,12 +126,17 @@ class MessageReactionAddListener extends Listener {
Embed.setFooter(reactionCount, reaction.message.guild.emojis.find(emoji => emoji.name === emote).url); Embed.setFooter(reactionCount, reaction.message.guild.emojis.find(emoji => emoji.name === emote).url);
} }
let description = reaction.message.content; let description = '';
console.log(reaction.message.content);
// if message come from nsfw channel and the star/shameboard channel isn't nsfw put it in spoiler // if message come from nsfw channel and the star/shameboard channel isn't nsfw put it in spoiler
if (!reaction.message.content) if (reaction.message.embeds[0]) {
description = reaction.message.embeds[0].description; if (reaction.message.embeds[0].description) {
else if (!reaction.message.content) description = reaction.message.embeds[0].description;
description = ''; }
}
else if (reaction.message.content) {
description = reaction.message.content;
}
if (reaction.message.channel.nsfw && !channel.nsfw) { if (reaction.message.channel.nsfw && !channel.nsfw) {
Embed.setDescription(`||${description}||`); Embed.setDescription(`||${description}||`);

Loading…
Cancel
Save