Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Modrinth

Hierarchy

  • Modrinth

Index

Constructors

constructor

Properties

options

options: Partial<Options> = ...

Static version

version: string = ...

Accessors

apiURL

  • get apiURL(): string

cdnURL

  • get cdnURL(): string

siteURL

  • get siteURL(): string

useCache

  • get useCache(): boolean

Static defaultOptions

  • get defaultOptions(): Partial<Options>

Methods

createVersion

currentUser

  • currentUser(): Promise<User>

login

  • login(token: string): void
  • Parameters

    • token: string

    Returns void

mod

  • mod(id: string): Promise<Mod>

mods

  • mods(id: string[]): Promise<Mod[]>
  • mods(...id: string[]): Promise<Mod[]>
  • Parameters

    • id: string[]

    Returns Promise<Mod[]>

  • Parameters

    • Rest ...id: string[]

    Returns Promise<Mod[]>

self

  • self(): Promise<User>

user

  • user(id: string): Promise<User>

users

  • users(id: string[]): Promise<User[]>
  • users(...id: string[]): Promise<User[]>

version

  • version(id: string): Promise<Version>

versions

  • versions(id: string[]): Promise<Version[]>
  • versions(...id: string[]): Promise<Version[]>

Generated using TypeDoc