diff --git a/index.d.ts b/index.d.ts index 1db32c7e..c5dce204 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2489,6 +2489,7 @@ declare namespace Dysnomia { id: string; proxyURL: string; size: number; + title?: string; url: string; waveform?: string; width?: number; diff --git a/lib/structures/Attachment.js b/lib/structures/Attachment.js index 37ee66aa..f112a335 100644 --- a/lib/structures/Attachment.js +++ b/lib/structures/Attachment.js @@ -50,6 +50,13 @@ class Attachment extends Base { } update(data) { + if(data.title !== undefined) { + /** + * The title of the attachment + * @type {String?} + */ + this.title = data.title; + } if(data.description !== undefined) { /** * The description of the attachment