diff --git a/lib/structures/Attachment.ts b/lib/structures/Attachment.ts index 8226dbab..d3913a9f 100644 --- a/lib/structures/Attachment.ts +++ b/lib/structures/Attachment.ts @@ -24,6 +24,8 @@ export default class Attachment extends Base { proxyURL: string; /** The size of this attachment. */ size: number; + /** The title of this attachment. */ + title?: string; /** The source url of this attachment. */ url: string; /** Base64 encoded bytearray representing a sampled waveform for voice messages. */ @@ -57,6 +59,7 @@ export default class Attachment extends Base { height: this.height, proxyURL: this.proxyURL, size: this.size, + title: this.title, url: this.url, width: this.width }; diff --git a/lib/types/channels.d.ts b/lib/types/channels.d.ts index dd657445..2c0fc8ab 100644 --- a/lib/types/channels.d.ts +++ b/lib/types/channels.d.ts @@ -662,6 +662,7 @@ export interface RawAttachment { id: string; proxy_url: string; size: number; + title?: string; url: string; waveform?: string | null; width?: number; diff --git a/lib/types/json.d.ts b/lib/types/json.d.ts index b1d600c5..5ae49a20 100644 --- a/lib/types/json.d.ts +++ b/lib/types/json.d.ts @@ -159,6 +159,7 @@ export interface JSONAttachment extends JSONBase { height?: number; proxyURL: string; size: number; + title?: string; url: string; width?: number; }