From e3ee38ce190f24877e174ac7a2e25c29196e567d Mon Sep 17 00:00:00 2001 From: Nico105 <63612668+Nico105@users.noreply.github.com> Date: Sat, 5 Feb 2022 23:47:04 +0100 Subject: [PATCH] fix - replyToGiveaway not working if no "content" --- src/Giveaway.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Giveaway.js b/src/Giveaway.js index 920074b4..ed7301e7 100644 --- a/src/Giveaway.js +++ b/src/Giveaway.js @@ -661,7 +661,7 @@ class Giveaway extends EventEmitter { allowedMentions: this.allowedMentions, reply: { messageReference: - message?.length <= 2000 && + !(message?.length > 2000) && typeof this.messages.winMessage.replyToGiveaway === 'boolean' ? this.messageId : undefined, @@ -679,7 +679,7 @@ class Giveaway extends EventEmitter { allowedMentions: this.allowedMentions, reply: { messageReference: - message?.length <= 2000 && + !(message?.length > 2000) && typeof this.messages.winMessage.replyToGiveaway === 'boolean' ? this.messageId : undefined, @@ -833,7 +833,7 @@ class Giveaway extends EventEmitter { allowedMentions: this.allowedMentions, reply: { messageReference: - message?.length <= 2000 && + !(message?.length > 2000) && typeof options.messages.congrat.replyToGiveaway === 'boolean' ? this.messageId : undefined, @@ -851,7 +851,7 @@ class Giveaway extends EventEmitter { allowedMentions: this.allowedMentions, reply: { messageReference: - message?.length <= 2000 && + !(message?.length > 2000) && typeof options.messages.congrat.replyToGiveaway === 'boolean' ? this.messageId : undefined,