Skip to content

Commit

Permalink
fix(types): update MessageAttachment typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Sep 4, 2024
1 parent 91cf22a commit c229345
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/structures/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ export interface MessageAttachment {
id: string;
/** The filename of the attachment. */
filename: string;
/** The title of the attachment. */
title?: number;
/** The attachment's content type. */
content_type?: string;
/** The size of the attachment in bytes. */
Expand All @@ -187,6 +189,14 @@ export interface MessageAttachment {
height?: number;
/** The width of the image, if the attachment was an image. */
width?: number;
/** Whether this attachment is ephemeral. */
ephemeral?: boolean;
/** The duration of the voice message. */
duration_secs?: number;
/** Base64 encoded bytearray representing a sampled waveform of the voice message. */
waveform?: string;
/** The flags of the attachment. */
flags?: number;
}

/** Options to creating a message embed. */
Expand Down

0 comments on commit c229345

Please sign in to comment.