Skip to content

Commit

Permalink
fix - replyToGiveaway not working if no "content"
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Feb 5, 2022
1 parent 929ba47 commit e3ee38c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit e3ee38c

Please sign in to comment.