Function createLog

  • Creates a new log.

    Usage

    const log: Omit<LogComplete, '_id'> = {
    type: LogType.COMPLETE,
    memberId: "453627890348576",
    gameId: 56780,
    };

    const {
    acknowledged,
    insertedId,
    } = await sdk.createLog({ log });

    Parameters

    • params: {
          log: Omit<Log, "_id">;
      }
      • log: Omit<Log, "_id">

        Data of the new log. Only the fields from base Log type are required, and the rest depends on the log type.

    Returns Promise<InsertOneResult<Log>>

Generated using TypeDoc