UNPKG

modrinthjs

Version:
27 lines (26 loc) 630 B
import type { ThreadMessage } from './ThreadMessage'; import type { User } from './User'; export type Thread = { /** * The ID of the thread */ id: string; type: Thread.type; /** * The ID of the associated project if a project thread */ project_id?: string | null; /** * The ID of the associated report if a report thread */ report_id?: string | null; messages: Array<ThreadMessage>; members: Array<User>; }; export declare namespace Thread { enum type { PROJECT = "project", REPORT = "report", DIRECT_MESSAGE = "direct_message" } }