Function isMatchStarted

  • Checks if a match is started.

    Note: this is score-based. A completed or archived match is seen as "started" as well.

    Locked > Waiting > Ready > [Running > Completed > Archived]

    Parameters

    • match: {
          opponent1?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; });
          opponent2?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; });
          status?: Status;
      }

      Partial match results.

      • Optional opponent1?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; })

        First opponent of the match.

      • Optional opponent2?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; })

        Second opponent of the match.

      • Optional status?: Status

        Status of the match.

    Returns boolean

Generated using TypeDoc