@@ -181,6 +181,17 @@ class MessageAttachment {
|
|||||||
} else {
|
} else {
|
||||||
this.flags ??= new AttachmentFlags().freeze();
|
this.flags ??= new AttachmentFlags().freeze();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ('title' in data) {
|
||||||
|
/**
|
||||||
|
* The title of this attachment
|
||||||
|
* <info>This will only be available if the attachment name contains special characters.</info>
|
||||||
|
* @type {?string}
|
||||||
|
*/
|
||||||
|
this.title = data.title;
|
||||||
|
} else {
|
||||||
|
this.title ??= null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -2160,6 +2160,7 @@ export class MessageAttachment {
|
|||||||
public proxyURL: string;
|
public proxyURL: string;
|
||||||
public size: number;
|
public size: number;
|
||||||
public readonly spoiler: boolean;
|
public readonly spoiler: boolean;
|
||||||
|
public title: string | null;
|
||||||
public url: string;
|
public url: string;
|
||||||
public waveform: string | null;
|
public waveform: string | null;
|
||||||
public width: number | null;
|
public width: number | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user