Updated Version & changed Version Return
This commit is contained in:
parent
7fb36d47df
commit
465628509c
@ -8,12 +8,12 @@ local tokens = {
|
|||||||
local Utils = require(script.Parent.Utils)
|
local Utils = require(script.Parent.Utils)
|
||||||
local MarcSyncClient = {}
|
local MarcSyncClient = {}
|
||||||
|
|
||||||
MarcSyncClient.getVersion = function(self:typeof(MarcSyncClient), clientId: number?):{["success"]:boolean,["version"]:string,["update_server"]:string}
|
MarcSyncClient.getVersion = function(self:typeof(MarcSyncClient), clientId: number?):string
|
||||||
self:_checkInstallation()
|
self:_checkInstallation()
|
||||||
local url = ""
|
local url = ""
|
||||||
if clientId then url = "/"..clientId end
|
if clientId then url = "/"..clientId end
|
||||||
local result = Utils.makeHTTPRequest("GET", "https://api.marcsync.dev/v0/utils/version"..url);
|
local result = Utils.makeHTTPRequest("GET", "https://api.marcsync.dev/v0/utils/version"..url);
|
||||||
return result
|
return result["version"]
|
||||||
end
|
end
|
||||||
|
|
||||||
MarcSyncClient.createCollection = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Collection).new())
|
MarcSyncClient.createCollection = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Collection).new())
|
Loading…
x
Reference in New Issue
Block a user