--[[**
	Checks if the given group is an ally of the target group and vice-versa.
	@param [Integer] GroupID The group you are checking.
	@param [Integer] TargetGroupID The group you are checking.
	@returns [Boolean] Whether or not the groups are allies.
**--]]

function GroupService:IsGroupAlly(GroupID, TargetGroupID)
	for _, Group in ipairs(GroupService:GetGroupAlliesAsync(GroupID)) do
		if Group.Id == TargetGroupID then
			return true
		end
	end

	return false
end
