@@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const AttachmentFlags = require('../util/AttachmentFlags');
|
||||
const Util = require('../util/Util');
|
||||
|
||||
/**
|
||||
@@ -169,6 +170,16 @@ class MessageAttachment {
|
||||
} else {
|
||||
this.waveform ??= null;
|
||||
}
|
||||
|
||||
if ('flags' in data) {
|
||||
/**
|
||||
* The flags of this attachment
|
||||
* @type {Readonly<AttachmentFlags>}
|
||||
*/
|
||||
this.flags = new AttachmentFlags(data.flags).freeze();
|
||||
} else {
|
||||
this.flags ??= new AttachmentFlags().freeze();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user