Skip to content

Commit

Permalink
docs(Attachment): add MIME types link to contentType (discordjs#9824)
Browse files Browse the repository at this point in the history
* docs(Attachment): add MIME types link to contentType

* docs: don't force locale

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and almeidx committed Sep 24, 2023
1 parent 6b80a60 commit 3f2d3d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/discord.js/src/structures/Attachment.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ class Attachment {

if ('content_type' in data) {
/**
* The media type of this attachment
* The media (MIME) type of this attachment
* @type {?string}
* @see {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types}
*/
this.contentType = data.content_type;
} else {
Expand Down

0 comments on commit 3f2d3d7

Please sign in to comment.