mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +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;
|
let flags;
|
||||||
if (this.isMessage || this.isMessageManager) {
|
if ((this.isMessage && typeof this.options.reply === 'undefined') || this.isMessageManager) {
|
||||||
// eslint-disable-next-line eqeqeq
|
// eslint-disable-next-line eqeqeq
|
||||||
flags = this.options.flags != null ? new MessageFlags(this.options.flags).bitfield : this.target.flags?.bitfield;
|
flags = this.options.flags != null ? new MessageFlags(this.options.flags).bitfield : this.target.flags?.bitfield;
|
||||||
} else if (isInteraction && this.options.ephemeral) {
|
} else if (isInteraction && this.options.ephemeral) {
|
||||||
|
|||||||
Reference in New Issue
Block a user