docs: added sizes 16, 32, 64 (#2666)

* documented sizes 16, 32, 64

* Removed space

* Added typedef

* The options to provide => Options for the Image URL

* fixed
This commit is contained in:
PLASMAchicken
2018-07-26 03:04:47 +02:00
committed by Isabella
parent 3a7a7d730b
commit c46cbbfd84
5 changed files with 14 additions and 23 deletions

View File

@@ -121,9 +121,7 @@ class ClientApplication extends Base {
/**
* A link to the application's icon.
* @param {Object} [options={}] Options for the icon url
* @param {string} [options.format='webp'] One of `webp`, `png`, `jpg`
* @param {number} [options.size=128] One of `128`, `256`, `512`, `1024`, `2048`
* @param {ImageURLOptions} [options={}] Options for the Image URL
* @returns {?string} URL to the icon
*/
iconURL({ format, size } = {}) {
@@ -133,9 +131,7 @@ class ClientApplication extends Base {
/**
* A link to this application's cover image.
* @param {Object} [options={}] Options for the cover image url
* @param {string} [options.format='webp'] One of `webp`, `png`, `jpg`
* @param {number} [options.size=128] One of `128`, `256`, `512`, `1024`, `2048`
* @param {ImageURLOptions} [options={}] Options for the Image URL
* @returns {?string} URL to the cover image
*/
coverImage({ format, size } = {}) {