mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(MessagePayload): v13 don't set reply flags to target flags (#7515)
This commit is contained in:
@@ -148,7 +148,7 @@ class MessagePayload {
|
||||
}
|
||||
|
||||
let flags;
|
||||
if (this.isMessage || this.isMessageManager) {
|
||||
if ((this.isMessage && typeof this.options.reply === 'undefined') || this.isMessageManager) {
|
||||
// eslint-disable-next-line eqeqeq
|
||||
flags = this.options.flags != null ? new MessageFlags(this.options.flags).bitfield : this.target.flags?.bitfield;
|
||||
} else if (isInteraction && this.options.ephemeral) {
|
||||
|
||||
Reference in New Issue
Block a user