Options
All
  • Public
  • Public/Protected
  • All
Menu

Class User

Hierarchy

Index

Constructors

constructor

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>

getObjectLocation

  • getObjectLocation(): string

getObjectURL

  • getObjectURL(): string

getResourceLocation

  • getResourceLocation(): string

getResourceURL

  • getResourceURL(): string

mods

  • mods(): Promise<Mod[]>

mutate

toJSON

  • toJSON(): unknown

toString

  • toString(): string

update

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

Static current

Static fetch

Static fetchMultiple

Static fromSource

Static get

Static getCacheKey

  • getCacheKey(id: string): string

Static getMultiple

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

Static getObjectLocation

  • getObjectLocation(id: string): string

Static getResourceLocation

  • getResourceLocation(id: string): string

Static toSource

Static update

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

Generated using TypeDoc