Skip to content

Commit

Permalink
fix(MessagePayload): don't set reply flags to target flags (#7514)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckohen committed Feb 23, 2022
1 parent 6a2fa70 commit 4f30652
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/discord.js/src/structures/MessagePayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ class MessagePayload {
}

let flags;
if (typeof this.options.flags !== 'undefined' || this.isMessage || this.isMessageManager) {
if (
typeof this.options.flags !== 'undefined' ||
(this.isMessage && typeof this.options.reply === 'undefined') ||
this.isMessageManager
) {
flags =
// eslint-disable-next-line eqeqeq
this.options.flags != null
Expand Down

0 comments on commit 4f30652

Please sign in to comment.