Members
accessLevel :number
- Source:
Unknown value
Type:
- number
(nullable) avatarUrl :string
- Source:
- See:
-
- hasAvatar
The link to the user's profile picture if they have any
Type:
- string
(nullable) badge :string
- Source:
The name of the user's badge if they have any
Type:
- string
(nullable) email :string
- Source:
The user's email if you have permission to view it
Type:
- string
hasAvatar :boolean
- Source:
- See:
-
- avatarUrl
Whether or not the user has set a custom profile picture
Type:
- boolean
id :number
- Source:
The user's ID
Type:
- number
isPro :boolean
- Source:
- See:
-
- proExpireDate
Whether or not the user has SoloLearn Pro
Type:
- boolean
level :number
- Source:
- See:
-
- xp
The user's XP level
Type:
- number
name :string
- Source:
The username
Type:
- string
(nullable) proExpireDate :*
- Source:
When SoloLearn Pro expires for this user if applicable (Unknown type)
Type:
- *
(nullable) registerDateTime :*
- Source:
When the user registered their account (Unknown type, sometimes null?)
Type:
- *
xp :number
- Source:
The amount of XP this user has
Type:
- number
Methods
(async) getCodes(count, filteropt, indexopt, searchQueryopt, languageopt) → {Promise.<Array.<CodeItem>>}
- Source:
Search for public codes
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
count |
number | The maximum amount of codes to get | ||
filter |
SearchFilter |
<optional> |
SearchFilter.MOST_RECENT
|
The sorting filter to use |
index |
number |
<optional> |
0
|
The index of where to start |
searchQuery |
string |
<optional> |
A search query | |
language |
Language | "" |
<optional> |
Which language to filter results by |
Returns:
The search results
- Type
- Promise.<Array.<CodeItem>>
(async) getFeed(count, fromopt, toopt) → {Promise.<Array.<Post>>}
- Source:
- See:
-
- getPosts Get only posts created by this user
Get the user's feed
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
count |
number | The maximum amount of posts to get (includes things like achievements and completed challenges) | ||
from |
Post | number |
<optional> |
null
|
The latest post to return |
to |
Post | number |
<optional> |
null
|
The earliest post to return |
Returns:
- Type
- Promise.<Array.<Post>>
(async) getItemCounts() → {Promise.<ItemCounts>}
- Source:
Get the amount of answers, codes etc. this user has
Returns:
- Type
- Promise.<ItemCounts>
(async) getLessons(count, index) → {Promise.<Array.<Lesson>>}
- Source:
Get the lessons that were created by this user
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
count |
number | The maximum amount of lessons to get | |
index |
number |
0
|
The offset |
Returns:
- Type
- Promise.<Array.<Lesson>>
(async) getPosts(count) → {Promise.<Array.<Post>>}
- Source:
- See:
-
- getFeed Get all posts including achievements and challenges completed etc.
Get the user's user-created posts
Parameters:
| Name | Type | Description |
|---|---|---|
count |
number | The maximum amount of posts to get |
Returns:
- Type
- Promise.<Array.<Post>>
(async) getUserInfo() → {Promise.<UserInfo>}
- Source:
Get additional information about this user
Returns:
- Type
- Promise.<UserInfo>