Variable getURLConst

getURL: {
    beatmapCoverImage: (
        beatmap: Beatmap | { beatmapset_id: number },
        server?: string,
    ) => string;
    beatmapCoverThumbnail: (
        beatmap: Beatmap | { beatmapset_id: number },
        server?: string,
    ) => string;
    toOpen: {
        beatmap: (beatmap: Beatmap | { beatmap_id: number }) => string;
        beatmapset: (beatmap: Beatmap | { beatmapset_id: number }) => string;
        channel: (channel: string) => string;
        editor: (timeline: string) => string;
        match: (id: number, password?: string) => string;
        spectateUser: (user: User | { user_id: number }) => string;
    };
    userProfilePicture: (
        user: User | { user_id: number },
        server?: string,
    ) => string;
} = ...

This object is a collection of functions that can be useful if you're looking to have an image URL or a URL that interacts directly with the game client!

Type declaration

  • beatmapCoverImage: (beatmap: Beatmap | { beatmapset_id: number }, server?: string) => string
  • beatmapCoverThumbnail: (beatmap: Beatmap | { beatmapset_id: number }, server?: string) => string
  • toOpen: {
        beatmap: (beatmap: Beatmap | { beatmap_id: number }) => string;
        beatmapset: (beatmap: Beatmap | { beatmapset_id: number }) => string;
        channel: (channel: string) => string;
        editor: (timeline: string) => string;
        match: (id: number, password?: string) => string;
        spectateUser: (user: User | { user_id: number }) => string;
    }

    The URLs in that Object do not use HTTPS, and instead (try to) open the osu! client in order to do something

    • beatmap: (beatmap: Beatmap | { beatmap_id: number }) => string
    • beatmapset: (beatmap: Beatmap | { beatmapset_id: number }) => string
    • channel: (channel: string) => string
    • editor: (timeline: string) => string
    • match: (id: number, password?: string) => string
    • spectateUser: (user: User | { user_id: number }) => string
  • userProfilePicture: (user: User | { user_id: number }, server?: string) => string