Skip to content

Commit

Permalink
Add title to Attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dymidless committed Jun 26, 2024
1 parent da45a22 commit fd632c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/structures/Attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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
};
Expand Down
1 change: 1 addition & 0 deletions lib/types/channels.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ export interface RawAttachment {
id: string;
proxy_url: string;
size: number;
title?: string;
url: string;
waveform?: string | null;
width?: number;
Expand Down
1 change: 1 addition & 0 deletions lib/types/json.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export interface JSONAttachment extends JSONBase {
height?: number;
proxyURL: string;
size: number;
title?: string;
url: string;
width?: number;
}
Expand Down

0 comments on commit fd632c0

Please sign in to comment.