mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Make JSDocs follow general conventions (#582)
* Make JSDocs follow usual conventions * Fix StringResolvable name * Make function lowercase
This commit is contained in:
committed by
Amish Shah
parent
44efcf3f52
commit
27652b94af
@@ -19,37 +19,37 @@ class MessageAttachment {
|
||||
setup(data) {
|
||||
/**
|
||||
* The ID of this attachment
|
||||
* @type {String}
|
||||
* @type {string}
|
||||
*/
|
||||
this.id = data.id;
|
||||
/**
|
||||
* The file name of this attachment
|
||||
* @type {String}
|
||||
* @type {string}
|
||||
*/
|
||||
this.filename = data.filename;
|
||||
/**
|
||||
* The size of this attachment in bytes
|
||||
* @type {Number}
|
||||
* @type {number}
|
||||
*/
|
||||
this.filesize = data.size;
|
||||
/**
|
||||
* The URL to this attachment
|
||||
* @type {String}
|
||||
* @type {string}
|
||||
*/
|
||||
this.url = data.url;
|
||||
/**
|
||||
* The Proxy URL to this attachment
|
||||
* @type {String}
|
||||
* @type {string}
|
||||
*/
|
||||
this.proxyURL = data.url;
|
||||
/**
|
||||
* The height of this attachment (if an image)
|
||||
* @type {?Number}
|
||||
* @type {?number}
|
||||
*/
|
||||
this.height = data.height;
|
||||
/**
|
||||
* The width of this attachment (if an image)
|
||||
* @type {?Number}
|
||||
* @type {?number}
|
||||
*/
|
||||
this.width = data.width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user