Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mod

Hierarchy

Index

Constructors

constructor

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

createVersion

  • createVersion(body: any, file: any): Promise<Version>

get

  • get(): Promise<Mod>

getObjectLocation

  • getObjectLocation(): string

getObjectURL

  • getObjectURL(): string

getResourceLocation

  • getResourceLocation(): string

getResourceURL

  • getResourceURL(): string

mutate

toJSON

  • toJSON(): unknown

toString

  • toString(): string

update

  • update(update: Partial<Mod>): Promise<Mod>

versions

Static fetch

Static fetchMultiple

Static fromSource

Static get

Static getCacheKey

  • getCacheKey(id: string): string

Static getMultiple

  • getMultiple(modrinth: Modrinth, ids: string[]): Promise<Mod[]>

Static getObjectLocation

  • getObjectLocation(id: string): string

Static getResourceLocation

  • getResourceLocation(id: string): string

Static toSource

Static update

  • update(modrinth: Modrinth, id: string, update: Partial<Mod>): Promise<void>

Generated using TypeDoc