Search
Preparing search index...
The search index is not available
Modrinth.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Modrinth.js
Version
Class Version
Hierarchy
Omit
<
VersionSource
,
VersionSourceOmit
>
ModrinthObject
<
typeof
Version
,
Version
,
VersionSource
>
Version
Index
Constructors
constructor
Properties
author_
id
changelog
changelog_
url
date_
published
dependencies
downloads
featured
files
game_
versions
id
loaders
mod_
id
name
object_
url
resource_
url
type
version_
number
Methods
get
get
Author
get
Mod
get
Object
Location
get
ObjectURL
get
Resource
Location
get
ResourceURL
mutate
toJSON
to
String
create
fetch
fetch
Multiple
from
Source
get
get
Cache
Key
get
Multiple
get
Object
Location
get
Resource
Location
to
Source
Constructors
constructor
new
Version
(
modrinth
:
Modrinth
, source
:
VersionSource
)
:
Version
Parameters
modrinth:
Modrinth
source:
VersionSource
Returns
Version
Properties
author_
id
author_
id
:
string
changelog
changelog
:
string
changelog_
url
changelog_
url
:
null
date_
published
date_
published
:
Date
dependencies
dependencies
:
any
[]
downloads
downloads
:
number
featured
featured
:
boolean
files
files
:
File
[]
game_
versions
game_
versions
:
GameVersion
[]
id
id
:
string
loaders
loaders
:
Loader
[]
mod_
id
mod_
id
:
string
name
name
:
string
object_
url
object_
url
:
string
resource_
url
resource_
url
:
string
type
type
:
VersionType
version_
number
version_
number
:
string
Methods
get
get
(
)
:
Promise
<
Version
>
Returns
Promise
<
Version
>
get
Author
get
Author
(
)
:
Promise
<
User
>
Returns
Promise
<
User
>
get
Mod
get
Mod
(
)
:
Promise
<
Mod
>
Returns
Promise
<
Mod
>
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
mutate
mutate
(
source
:
VersionSource
)
:
Version
Parameters
source:
VersionSource
Returns
Version
toJSON
toJSON
(
)
:
unknown
Returns
unknown
to
String
to
String
(
)
:
string
Returns
string
Static
create
create
(
modrinth
:
Modrinth
, body
:
VersionCreation
, files
:
UploadFile
[]
)
:
Promise
<
Version
>
Parameters
modrinth:
Modrinth
body:
VersionCreation
files:
UploadFile
[]
Returns
Promise
<
Version
>
Static
fetch
fetch
(
modrinth
:
Modrinth
, id
:
string
)
:
Promise
<
VersionSource
>
Parameters
modrinth:
Modrinth
id:
string
Returns
Promise
<
VersionSource
>
Static
fetch
Multiple
fetch
Multiple
(
modrinth
:
Modrinth
, ids
:
string
[]
)
:
Promise
<
VersionSource
[]
>
Parameters
modrinth:
Modrinth
ids:
string
[]
Returns
Promise
<
VersionSource
[]
>
Static
from
Source
from
Source
(
modrinth
:
Modrinth
, source
:
VersionSource
)
:
Version
Parameters
modrinth:
Modrinth
source:
VersionSource
Returns
Version
Static
get
get
(
modrinth
:
Modrinth
, id
:
string
)
:
Promise
<
Version
>
Parameters
modrinth:
Modrinth
id:
string
Returns
Promise
<
Version
>
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
<
Version
[]
>
Parameters
modrinth:
Modrinth
ids:
string
[]
Returns
Promise
<
Version
[]
>
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
:
Version
)
:
VersionSource
Parameters
object:
Version
Returns
VersionSource
Exports
Cache
Mod
Modrinth
Modrinth
Object
User
Version
constructor
author_
id
changelog
changelog_
url
date_
published
dependencies
downloads
featured
files
game_
versions
id
loaders
mod_
id
name
object_
url
resource_
url
type
version_
number
get
get
Author
get
Mod
get
Object
Location
get
ObjectURL
get
Resource
Location
get
ResourceURL
mutate
toJSON
to
String
create
fetch
fetch
Multiple
from
Source
get
get
Cache
Key
get
Multiple
get
Object
Location
get
Resource
Location
to
Source
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