I don't fucking know what i did before but i must have been drunk
This commit is contained in:
parent
411eb541e5
commit
b5c29cba29
1 changed files with 10 additions and 5 deletions
|
@ -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]) {
|
||||||
|
if (reaction.message.embeds[0].description) {
|
||||||
description = reaction.message.embeds[0].description;
|
description = reaction.message.embeds[0].description;
|
||||||
else if (!reaction.message.content)
|
}
|
||||||
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…
Reference in a new issue