Webpack build for branch master: 577ab37a2b

This commit is contained in:
Travis CI 2017-06-07 21:50:34 +00:00
parent 7494647e6c
commit d4871bd15c
2 changed files with 14 additions and 10 deletions

View file

@ -4343,12 +4343,13 @@ class User {
/** /**
* A link to the user's avatar * A link to the user's avatar
* @param {string} [format='webp'] One of `webp`, `png`, `jpg`, `gif`. If no format is provided, it will be `gif` * @param {Object} [options={}] Options for the avatar url
* for animated avatars or otherwise `webp` * @param {string} [options.format='webp'] One of `webp`, `png`, `jpg`, `gif`. If no format is provided,
* @param {number} [size=128] One of `128`, '256', `512`, `1024`, `2048` * it will be `gif` for animated avatars or otherwise `webp`
* @returns {?string} avatarURL * @param {number} [options.size=128] One of `128`, '256', `512`, `1024`, `2048`
* @returns {?string}
*/ */
avatarURL(format, size) { avatarURL({ format, size } = {}) {
if (!this.avatar) return null; if (!this.avatar) return null;
if (typeof format === 'number') { if (typeof format === 'number') {
size = format; size = format;
@ -4368,11 +4369,14 @@ class User {
/** /**
* A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned * A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned
* @type {string} * @param {Object} [options={}] Options for the avatar url
* @readonly * @param {string} [options.format='webp'] One of `webp`, `png`, `jpg`, `gif`. If no format is provided,
* it will be `gif` for animated avatars or otherwise `webp`
* @param {number} [options.size=128] One of `128`, '256', `512`, `1024`, `2048`
* @returns {string}
*/ */
get displayAvatarURL() { displayAvatarURL(options) {
return this.avatarURL() || this.defaultAvatarURL; return this.avatarURL(options) || this.defaultAvatarURL;
} }
/** /**

File diff suppressed because one or more lines are too long