linting
This commit is contained in:
		
							parent
							
								
									cdd874275e
								
							
						
					
					
						commit
						45eadb5d11
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -40,16 +40,13 @@ export class User extends Base { | ||||||
|     return `<@${this.id}>` |     return `<@${this.id}>` | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   avatarURL(format?: ImageFormats, size?: ImageSize, dynamic: boolean = true) { |   avatarURL(format: ImageFormats = 'webp', size: ImageSize = 512, dynamic: boolean = true): string { | ||||||
|     if (!format) format = 'webp' |     return this.avatar != null | ||||||
|     if (!size) size = 512 |  | ||||||
| 
 |  | ||||||
|     return this.avatar |  | ||||||
|       ? `${ImageURL(USER_AVATAR(this.id, dynamic ? this.avatar : this.avatar.replace('a_', '')), format, size)}` |       ? `${ImageURL(USER_AVATAR(this.id, dynamic ? this.avatar : this.avatar.replace('a_', '')), format, size)}` | ||||||
|       : `${DEFAULT_USER_AVATAR(String(Number(this.discriminator) % 5))}.png` |       : `${DEFAULT_USER_AVATAR(String(Number(this.discriminator) % 5))}.png` | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   get defaultAvatarURL() { |   get defaultAvatarURL(): string { | ||||||
|       return `${DEFAULT_USER_AVATAR(String(Number(this.discriminator) % 5))}.png` |       return `${DEFAULT_USER_AVATAR(String(Number(this.discriminator) % 5))}.png` | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue