function DataStorePromises.promiseDataStore(C,h)assert(type(C)=="\115\116\114\105\110\103","\066\097\100 \110\097\109\101")assert(type(h)=="\115\116\114\105\110\103","\066\097\100 \115\099\111\112\101")return Promise.new(function(g,r)local I=nil local u,e=pcall(function()I=DataStoreService:GetDataStore(C,h)end)if not u then return r(e)end return g(I)end)end
--[=[
	Promises a Roblox datastore object with the name and scope. Generally only fails
	when you haven't published the place.
	@param name string
	@param scope string
	@return Promise<DataStore>
]=]
function DataStorePromises.promiseDataStore(name, scope)
	assert(type(name) == "string", "Bad name")
	assert(type(scope) == "string", "Bad scope")

	return Promise.new(function(resolve, reject)
		local result = nil
		local ok, err = pcall(function()
			result = DataStoreService:GetDataStore(name, scope)
		end)
		if not ok then
			return reject(err)
		end
		return resolve(result)
	end)
end
