Search
Preparing search index...
The search index is not available
Modrinth.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Modrinth.js
Mod
Class Mod
Hierarchy
Omit
<
ModSource
,
ModSourceOmit
>
ModrinthObject
<
typeof
Mod
,
Mod
,
ModSource
>
Mod
Index
Constructors
constructor
Properties
body
body_
url
categories
client_
side
description
discord_
url
donation_
urls
downloads
followers
icon_
url
id
issues_
url
license
object_
url
published
resource_
url
server_
side
slug
source_
url
status
team
title
updated
wiki_
url
Methods
create
Version
get
get
Object
Location
get
ObjectURL
get
Resource
Location
get
ResourceURL
mutate
toJSON
to
String
update
versions
fetch
fetch
Multiple
from
Source
get
get
Cache
Key
get
Multiple
get
Object
Location
get
Resource
Location
to
Source
update
Constructors
constructor
new
Mod
(
modrinth
:
Modrinth
, source
:
ModSource
)
:
Mod
Parameters
modrinth:
Modrinth
source:
ModSource
Returns
Mod
Properties
body
body
:
string
body_
url
body_
url
:
string
categories
categories
:
string
[]
client_
side
client_
side
:
string
description
description
:
string
discord_
url
discord_
url
:
string
donation_
urls
donation_
urls
:
any
[]
downloads
downloads
:
number
followers
followers
:
number
icon_
url
icon_
url
:
string
id
id
:
string
issues_
url
issues_
url
:
string
license
license
:
License
object_
url
object_
url
:
string
published
published
:
Date
resource_
url
resource_
url
:
string
server_
side
server_
side
:
string
slug
slug
:
string
source_
url
source_
url
:
string
status
status
:
string
team
team
:
string
title
title
:
string
updated
updated
:
Date
wiki_
url
wiki_
url
:
string
Methods
create
Version
create
Version
(
body
:
any
, file
:
any
)
:
Promise
<
Version
>
Parameters
body:
any
file:
any
Returns
Promise
<
Version
>
get
get
(
)
:
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
:
ModSource
)
:
Mod
Parameters
source:
ModSource
Returns
Mod
toJSON
toJSON
(
)
:
unknown
Returns
unknown
to
String
to
String
(
)
:
string
Returns
string
update
update
(
update
:
Partial
<
Mod
>
)
:
Promise
<
Mod
>
Parameters
update:
Partial
<
Mod
>
Returns
Promise
<
Mod
>
versions
versions
(
)
:
Promise
<
Version
[]
>
Returns
Promise
<
Version
[]
>
Static
fetch
fetch
(
modrinth
:
Modrinth
, id
:
string
)
:
Promise
<
ModSource
>
Parameters
modrinth:
Modrinth
id:
string
Returns
Promise
<
ModSource
>
Static
fetch
Multiple
fetch
Multiple
(
modrinth
:
Modrinth
, ids
:
string
[]
)
:
Promise
<
ModSource
[]
>
Parameters
modrinth:
Modrinth
ids:
string
[]
Returns
Promise
<
ModSource
[]
>
Static
from
Source
from
Source
(
modrinth
:
Modrinth
, source
:
ModSource
)
:
Mod
Parameters
modrinth:
Modrinth
source:
ModSource
Returns
Mod
Static
get
get
(
modrinth
:
Modrinth
, id
:
string
)
:
Promise
<
Mod
>
Parameters
modrinth:
Modrinth
id:
string
Returns
Promise
<
Mod
>
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
<
Mod
[]
>
Parameters
modrinth:
Modrinth
ids:
string
[]
Returns
Promise
<
Mod
[]
>
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
:
Mod
)
:
Partial
<
ModSource
>
Parameters
object:
Mod
Returns
Partial
<
ModSource
>
Static
update
update
(
modrinth
:
Modrinth
, id
:
string
, update
:
Partial
<
Mod
>
)
:
Promise
<
void
>
Parameters
modrinth:
Modrinth
id:
string
update:
Partial
<
Mod
>
Returns
Promise
<
void
>
Exports
Cache
Mod
constructor
body
body_
url
categories
client_
side
description
discord_
url
donation_
urls
downloads
followers
icon_
url
id
issues_
url
license
object_
url
published
resource_
url
server_
side
slug
source_
url
status
team
title
updated
wiki_
url
create
Version
get
get
Object
Location
get
ObjectURL
get
Resource
Location
get
ResourceURL
mutate
toJSON
to
String
update
versions
fetch
fetch
Multiple
from
Source
get
get
Cache
Key
get
Multiple
get
Object
Location
get
Resource
Location
to
Source
update
Modrinth
Modrinth
Object
User
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