forked from Supositware/Haha-Yes
If message going into starboard is nsfw and starboard is nsfw too don't put in spoiler
This commit is contained in:
parent
be73942ab2
commit
c575f3f7d1
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ class MessageReactionAddListener extends Listener {
|
|||
.setFooter(reaction.count + ' ' + emote)
|
||||
.setTimestamp();
|
||||
|
||||
if (reaction.message.channel.nsfw) {
|
||||
// if message come from nsfw channel and the star/shameboard channel isn't nsfw put it in spoiler
|
||||
if (reaction.message.channel.nsfw && !channel.nsfw) {
|
||||
Embed.setDescription(`||${messageContent}||`);
|
||||
if (messageAttachments != '') {
|
||||
return channel.send(`||${messageAttachments}||`, {embed: Embed});
|
||||
|
|
Loading…
Reference in a new issue