User
User class, has information on a user
Properties
Thread class does not have any properties
Methods
.author(thread ID)
Returns username of author of the specified thread. If the thread is invalid it will throw an error. it will also throw an error if it's not the top thread but that's not supposed to happen it's just because aops is weird
Example:
console.log(await aops.user.author('810735h1770184'));
Output:
Jomity
.postNum(thread ID)
Returns number of posts in the specified thread. If the thread is invalid it will throw an error. it will also throw an error if it's not the top thread but that's not supposed to happen it's just because aops is weird
Example:
console.log(await aops.user.postNum('810735h1770184'));
Output:
21486
.title(thread ID)
Returns title of the specified thread. If the thread is invalid it will throw an error. it will also throw an error if it's not the top thread but that's not supposed to happen it's just because aops is weird
Example:
console.log(await aops.user.title('810735h1770184'));
Output:
ULTIMATE MARATHON