User
User class, has information on a user
- none
Properties
User class does not have any properties
Methods
.avatar(user)
Returns avatar url of specified user. If the user is invalid it will throw an error
Example:
console.log(await aops.user.avatar('438336'));
Output:
//avatar.artofproblemsolving.com/avatar_438336.jpg?t=1616293663
.goals(user)
Returns goals field of specified user. If the user is invalid or the user does not have goals set it will throw an error
Example:
console.log(await aops.user.goals('438336'));
Output:
to be famous
.intrests(user)
Returns intrests field of specified user. If the user is invalid or the user does not have intrests set it will throw an error
Example:
console.log(await aops.user.intrests('438336'));
Output:
math, science, etc
.joined(user)
Returns the date the specified user joined. If the user is invalid it will throw an error
Example:
console.log(await aops.user.joined('438336'));
Output:
October 2, 2018
.occupation(user)
Returns the location field of specified user. If the user is invalid or the user does not have occupation set it will throw an error
Example:
console.log(await aops.user.occupation('438336'));
Output:
Web Development
.posts(user)
Returns the number posts the specified user has made. If the user is invalid it will throw an error
Example:
console.log(await aops.user.posts('438336'));
Output:
1003
.school(user)
Returns the school field of specified user. If the user is invalid or the user does not have school set it will throw an error
Example:
console.log(await aops.user.school('438336'));
Output:
Homeschooled
.status(user)
Returns the status field of specified user. If the user is invalid or the user does not have status set it will throw an error
Example:
console.log(await aops.user.status('438336'));
Output:
VSCoding
.userID(user)
Returns the userID of specified user. If the user is invalid it will throw an error
Example:
console.log(await aops.user.userID('banana_cream_PI'));
Output:
438336
.username(user)
Returns the username of specified user. If the user is invalid it will throw an error
Example:
console.log(await aops.user.username('438336'));
Output:
banana_cream_PI
.website(user)
Returns the website field of specified user. If the user is invalid or the user does not have website set it will throw an error
Example:
console.log(await aops.user.website('438336'));
Output:
https://banana-cream-pi.github.io/recipes.html#banana-cream-pie