Class Community

Represents a community.

Constructors

  • Construct a new Community instance.

    Parameters

    • data: {
          contact_urls: string[];
          has_finishes: boolean;
          icon: {
              servers: {
                  flagId: number;
                  name: string;
                  servers: Record<string, string[]>;
              }[];
              sha256: string;
              url: string;
          };
          id: string;
          name: string;
      }
      • contact_urls: string[]
      • has_finishes: boolean
      • icon: {
            servers: {
                flagId: number;
                name: string;
                servers: Record<string, string[]>;
            }[];
            sha256: string;
            url: string;
        }
        • servers: {
              flagId: number;
              name: string;
              servers: Record<string, string[]>;
          }[]
        • sha256: string
        • url: string
      • id: string
      • name: string

    Returns Community

Properties

hasFinishes: boolean

Wether to show finishes for maps.

According to https://discord.com/channels/252358080522747904/293493549758939136/1274386594270543954 This values decides wether fnished maps have a flag next to them in the server browser on the ddnet client.

icon: {
    sha256: string;
    url: string;
}

The icon for this community.

Type declaration

  • sha256: string

    SHA256 hash of the icon file.

  • url: string

    The community icon download url.

id: string

The id of this community.

name: string

The name of this community.

serverLocations: CommunityServerLocation[]

Server locations for this community along with their reported servers.

Methods