Function joinRaceByParticipantId

  • Signs a member up for participating in a specific race by given ID (if it exists).

    Race is identified by its stringified ObjectID. Member is identified by their Discord ID.

    Usage

    const raceId: string = "5f5e555d5a578b6";
    const memberId: string = "90876543782";

    const {
    acknowledged,
    insertedId,
    } = await sdk.joinRaceByParticipantId({ raceId, memberId });

    Parameters

    • params: {
          raceId: string;
          memberId: string;
      }
      • raceId: string

        ID of a race to sign a member to.

      • memberId: string

        ID of a member that wishes to sign into a race.

    Returns Promise<InsertOneResult<RacePlayer>>

Generated using TypeDoc