@@ -155,12 +155,12 @@ class MessagePayload {
|
|||||||
|
|
||||||
let flags;
|
let flags;
|
||||||
if (
|
if (
|
||||||
typeof this.options.flags !== 'undefined' ||
|
// eslint-disable-next-line eqeqeq
|
||||||
|
this.options.flags != null ||
|
||||||
(this.isMessage && typeof this.options.reply === 'undefined') ||
|
(this.isMessage && typeof this.options.reply === 'undefined') ||
|
||||||
this.isMessageManager
|
this.isMessageManager
|
||||||
) {
|
) {
|
||||||
// eslint-disable-next-line eqeqeq
|
flags = new MessageFlags(this.options.flags).bitfield;
|
||||||
flags = this.options.flags != null ? new MessageFlags(this.options.flags).bitfield : this.target.flags?.bitfield;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isInteraction && this.options.ephemeral) {
|
if (isInteraction && this.options.ephemeral) {
|
||||||
|
|||||||
Reference in New Issue
Block a user