forked from Supositware/Haha-Yes
reverted some change
This commit is contained in:
parent
748daa2011
commit
951f2d763e
2 changed files with 3 additions and 3 deletions
|
@ -128,9 +128,9 @@ class MessageReactionAddListener extends Listener {
|
|||
|
||||
let description = reaction.message.content;
|
||||
// if message come from nsfw channel and the star/shameboard channel isn't nsfw put it in spoiler
|
||||
if (!reaction.message.content && reaction.message.embeds[0].description)
|
||||
if (!reaction.message.content)
|
||||
description = reaction.message.embeds[0].description;
|
||||
else
|
||||
else if (!reaction.message.content)
|
||||
description = '';
|
||||
|
||||
if (reaction.message.channel.nsfw && !channel.nsfw) {
|
||||
|
|
|
@ -86,7 +86,7 @@ class messageReactionRemoveListener extends Listener {
|
|||
|
||||
// If the original embed description is empty make this embed empty ( and not undefined )
|
||||
let description = message.embeds[0].description;
|
||||
if (!message.embeds[0].description || message.embeds[0].description == undefined)
|
||||
if (!message.embeds[0].description)
|
||||
description = '';
|
||||
|
||||
let Embed = client.util.embed()
|
||||
|
|
Loading…
Reference in a new issue