Search
Preparing search index...
The search index is not available
Modrinth.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Modrinth.js
User
Class User
Hierarchy
Omit
<
UserSource
,
UserSourceOmit
>
ModrinthObject
<
typeof
User
,
User
,
UserSource
>
User
Index
Constructors
constructor
Properties
avatar_
url
bio
created
email
github_
id
id
name
object_
url
resource_
url
role
username
Methods
get
get
Object
Location
get
ObjectURL
get
Resource
Location
get
ResourceURL
mods
mutate
toJSON
to
String
update
current
fetch
fetch
Multiple
from
Source
get
get
Cache
Key
get
Multiple
get
Object
Location
get
Resource
Location
to
Source
update
Constructors
constructor
new
User
(
modrinth
:
Modrinth
, source
:
UserSource
)
:
User
Parameters
modrinth:
Modrinth
source:
UserSource
Returns
User
Properties
avatar_
url
avatar_
url
:
string
bio
bio
:
string
created
created
:
Date
email
email
:
null
github_
id
github_
id
:
number
id
id
:
string
name
name
:
string
object_
url
object_
url
:
string
resource_
url
resource_
url
:
string
role
role
:
string
username
username
:
string
Methods
get
get
(
)
:
Promise
<
User
>
Returns
Promise
<
User
>
get
Object
Location
get
Object
Location
(
)
:
string
Returns
string
get
ObjectURL
get
ObjectURL
(
)
:
string
Returns
string
get
Resource
Location
get
Resource
Location
(
)
:
string
Returns
string
get
ResourceURL
get
ResourceURL
(
)
:
string
Returns
string
mods
mods
(
)
:
Promise
<
Mod
[]
>
Returns
Promise
<
Mod
[]
>
mutate
mutate
(
source
:
UserSource
)
:
User
Parameters
source:
UserSource
Returns
User
toJSON
toJSON
(
)
:
unknown
Returns
unknown
to
String
to
String
(
)
:
string
Returns
string
update
update
(
update
:
Partial
<
User
>
)
:
Promise
<
User
>
Parameters
update:
Partial
<
User
>
Returns
Promise
<
User
>
Static
current
current
(
modrinth
:
Modrinth
)
:
Promise
<
User
>
Parameters
modrinth:
Modrinth
Returns
Promise
<
User
>
Static
fetch
fetch
(
modrinth
:
Modrinth
, id
:
string
)
:
Promise
<
UserSource
>
Parameters
modrinth:
Modrinth
id:
string
Returns
Promise
<
UserSource
>
Static
fetch
Multiple
fetch
Multiple
(
modrinth
:
Modrinth
, ids
:
string
[]
)
:
Promise
<
UserSource
[]
>
Parameters
modrinth:
Modrinth
ids:
string
[]
Returns
Promise
<
UserSource
[]
>
Static
from
Source
from
Source
(
modrinth
:
Modrinth
, source
:
UserSource
)
:
User
Parameters
modrinth:
Modrinth
source:
UserSource
Returns
User
Static
get
get
(
modrinth
:
Modrinth
, id
:
string
)
:
Promise
<
User
>
Parameters
modrinth:
Modrinth
id:
string
Returns
Promise
<
User
>
Static
get
Cache
Key
get
Cache
Key
(
id
:
string
)
:
string
Parameters
id:
string
Returns
string
Static
get
Multiple
get
Multiple
(
modrinth
:
Modrinth
, ids
:
string
[]
)
:
Promise
<
User
[]
>
Parameters
modrinth:
Modrinth
ids:
string
[]
Returns
Promise
<
User
[]
>
Static
get
Object
Location
get
Object
Location
(
id
:
string
)
:
string
Parameters
id:
string
Returns
string
Static
get
Resource
Location
get
Resource
Location
(
id
:
string
)
:
string
Parameters
id:
string
Returns
string
Static
to
Source
to
Source
(
object
:
User
)
:
Partial
<
UserSource
>
Parameters
object:
User
Returns
Partial
<
UserSource
>
Static
update
update
(
modrinth
:
Modrinth
, id
:
string
, update
:
Partial
<
User
>
)
:
Promise
<
void
>
Parameters
modrinth:
Modrinth
id:
string
update:
Partial
<
User
>
Returns
Promise
<
void
>
Exports
Cache
Mod
Modrinth
Modrinth
Object
User
constructor
avatar_
url
bio
created
email
github_
id
id
name
object_
url
resource_
url
role
username
get
get
Object
Location
get
ObjectURL
get
Resource
Location
get
ResourceURL
mods
mutate
toJSON
to
String
update
current
fetch
fetch
Multiple
from
Source
get
get
Cache
Key
get
Multiple
get
Object
Location
get
Resource
Location
to
Source
update
Version
Cache
Data
Cache
Options
File
Hashes
License
License
Mod
Source
Modrinth
Static
Model
Options
Upload
File
User
Source
Version
Creation
Version
Creation
Source
Version
Source
Cache
Callback
Fn
Cache
Map
Category
Donation
Platform
Game
Version
License
Loader
Report
Type
Version
Type
categories
donation_
platforms
game_
versions
licenses
loaders
report_
types
Generated using
TypeDoc