mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
fix(MessagePayload): don't set reply flags to target flags (#7514)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user