UNPKG

discord-vatron

Version:

Módulo para facilitar la interacción con la API de Discord

33 lines (26 loc) 604 B
module.exports = class Archivo { constructor(datos) { this._datos = datos; } get anchura() { return this._datos.width || null; } get altura() { return this._datos.height || null; } get url() { return this._datos.url || ''; } get urlProxy() { return this._datos.proxy_url; } get tamano() { return this._datos.size || 0; } get nombre() { return this._datos.filename || ''; } get tipoContenido() { return this._datos.content_type || ''; } }