API.getRoom

interface Room {
    active: boolean;
    auto_skip: boolean;
    category: string;
    channel_id: number;
    current_user_score?: {
        accuracy: number;
        attempts: number;
        completed: number;
        playlist_item_attempts: {
            attempts: number;
            id: number;
        }[];
        pp: number;
        room_id: number;
        total_score: number;
        user_id: number;
    };
    ends_at: null | Date;
    has_password: boolean;
    host: WithCountry;
    id: number;
    max_attempts: null | number;
    name: string;
    participant_count: number;
    playlist: PlaylistItem[];
    queue_mode: string;
    recent_participants: User[];
    starts_at: Date;
    type: string;
    user_id: number;
}

Properties

active: boolean
auto_skip: boolean
category: string
channel_id: number
current_user_score?: {
    accuracy: number;
    attempts: number;
    completed: number;
    playlist_item_attempts: {
        attempts: number;
        id: number;
    }[];
    pp: number;
    room_id: number;
    total_score: number;
    user_id: number;
}

Only exists if the authorized user has played

Type declaration

  • accuracy: number

    In a format where 96.40% would be 0.9640 (with some numbers after the zero)

  • attempts: number
  • completed: number
  • playlist_item_attempts: {
        attempts: number;
        id: number;
    }[]

    How many (completed (I think)) attempts on each item? Empty array if the multiplayer room is the realtime kind

  • pp: number
  • room_id: number
  • total_score: number
  • user_id: number
ends_at: null | Date
has_password: boolean
id: number
max_attempts: null | number
name: string
participant_count: number
playlist: PlaylistItem[]
queue_mode: string
recent_participants: User[]
starts_at: Date
type: string
user_id: number