Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs(Attachment): add MIME types link to contentType (#9824)
* 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
sdanialraza and kodiakhq[bot] committed Sep 17, 2023
1 parent 7cdfc6c commit 85b2498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/discord.js/src/structures/Attachment.js
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 85b2498

Please sign in to comment.