Implements

Constructors

Accessors

Methods

  • Parameters

    • _removeAccents: boolean = false

    Returns Promise<{
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    }[]>

  • Parameters

    • nationName: string

    Returns Promise<NotFoundError | {
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    } | (NotFoundError | {
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    })[]>

  • Parameters

    • Rest...names: string[]

    Returns Promise<NotFoundError | {
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    } | (NotFoundError | {
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    })[]>

  • Parameters

    • nationName: string
    • includeBelonging: boolean = false

    Returns Promise<{
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    }[]>

  • Parameters

    • location: StrictPoint2D
    • radius: StrictPoint2D
    • Optionaltowns: {
          area: number;
          balance?: number;
          board?: string;
          bounds: TownBounds;
          colours: {
              fill: `#${string}`;
              outline: `#${string}`;
          };
          councillors: string[];
          flags: {
              capital: boolean;
              public: boolean;
              pvp: boolean;
          };
          foundedTimestamp: number;
          founder?: string;
          mayor: string;
          name: string;
          nation: string;
          opacities?: {
              fill: Opacity;
              outline: Opacity;
          };
          outlaws?: string[];
          points: {
              x: number;
              z: number;
          }[];
          residents: string[];
          timestamps?: {
              founded: number;
              joinedNation?: number;
          };
          trusted?: string[];
          wealth?: number;
          wikis?: {
              nation?: string;
              town?: string;
          };
          x: number;
          z: number;
      }[]

    Returns Promise<{
        area: number;
        balance?: number;
        board?: string;
        bounds: TownBounds;
        colours: {
            fill: `#${string}`;
            outline: `#${string}`;
        };
        councillors: string[];
        flags: {
            capital: boolean;
            public: boolean;
            pvp: boolean;
        };
        foundedTimestamp: number;
        founder?: string;
        mayor: string;
        name: string;
        nation: string;
        opacities?: {
            fill: Opacity;
            outline: Opacity;
        };
        outlaws?: string[];
        points: {
            x: number;
            z: number;
        }[];
        residents: string[];
        timestamps?: {
            founded: number;
            joinedNation?: number;
        };
        trusted?: string[];
        wealth?: number;
        wikis?: {
            nation?: string;
            town?: string;
        };
        x: number;
        z: number;
    }[]>