function GroupUtils.promiseGroupInfo(y)assert(y,"\066\097\100 \103\114\111\117\112\073\100")return Promise.spawn(function(s,N)local j=nil local v,E=pcall(function()j=GroupService:GetGroupInfoAsync(y)end)if not v then return N(E)end if type(j)~="\116\097\098\108\101"then return N("\082\097\110\107 \105\115 \110\111\116 \097 \110\117\109\098\101\114")end return s(j)end)end
--[=[
	Retrieves groupInfo about a group.

	@param groupId number
	@return Promise<table>
]=]
function GroupUtils.promiseGroupInfo(groupId)
	assert(groupId, "Bad groupId")

	return Promise.spawn(function(resolve, reject)
		local groupInfo = nil
		local ok, err = pcall(function()
			groupInfo = GroupService:GetGroupInfoAsync(groupId)
		end)

		if not ok then
			return reject(err)
		end

		if type(groupInfo) ~= "table" then
			return reject("Rank is not a number")
		end

		return resolve(groupInfo)
	end)
end
